[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:
|
steps:
|
||||||
|
|
||||||
# build and publish
|
# build and publish
|
||||||
- image: 'plugins/docker'
|
- image: 'docker.io/library/docker:dind'
|
||||||
name: 'publish'
|
name: 'publish'
|
||||||
pull: 'always'
|
pull: 'always'
|
||||||
privileged: true
|
privileged: true
|
||||||
|
environment:
|
||||||
settings:
|
DOCKER_USERNAME:
|
||||||
|
|
||||||
# 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:
|
|
||||||
from_secret: 'docker_username'
|
from_secret: 'docker_username'
|
||||||
password:
|
DOCKER_PASSWORD:
|
||||||
from_secret: 'docker_password'
|
from_secret: 'docker_password'
|
||||||
|
|
||||||
# tags
|
commands:
|
||||||
tags:
|
- 'sleep 1'
|
||||||
- 'v0.9'
|
- 'docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD'
|
||||||
- 'latest'
|
- '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