[DRONE] Rewrite build and publish CI
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
65222ff619
commit
fd0e320d46
31
.drone.yml
31
.drone.yml
@ -6,31 +6,18 @@ type: 'kubernetes'
|
||||
steps:
|
||||
|
||||
# build and publish
|
||||
- image: 'plugins/docker'
|
||||
- image: 'docker.io/library/docker:dind'
|
||||
name: 'publish'
|
||||
pull: 'always'
|
||||
privileged: true
|
||||
|
||||
settings:
|
||||
|
||||
# registery and repos
|
||||
registry: 'docker.io'
|
||||
cache_from: 'rakepanorama/ansible-deployment'
|
||||
repo: 'rakepanorama/ansible-deployment'
|
||||
|
||||
build_args: '--network host'
|
||||
|
||||
# build stuff
|
||||
dockerfile: 'Dockerfile.linux.amd64'
|
||||
daemon_off: 'false'
|
||||
|
||||
# authentication
|
||||
username:
|
||||
environment:
|
||||
DOCKER_USERNAME:
|
||||
from_secret: 'docker_username'
|
||||
password:
|
||||
DOCKER_PASSWORD:
|
||||
from_secret: 'docker_password'
|
||||
|
||||
# tags
|
||||
tags:
|
||||
- 'v0.9'
|
||||
- 'latest'
|
||||
commands:
|
||||
- 'sleep 1'
|
||||
- 'docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD'
|
||||
- 'docker build --network host -t rakepanorama/ansible-deployment-container:v0.9 -t rakepanorama/ansible-deployment-container:latest .'
|
||||
- 'docker push -a rakepanorama/ansible-deployment-container'
|
||||
|
Loading…
Reference in New Issue
Block a user