[DRONE] Rewrite build and publish CI
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Simon Cornet 2022-10-07 12:59:15 +02:00
parent a2e77fc47f
commit d28176ba87

View File

@ -10,6 +10,7 @@ steps:
name: 'publish' name: 'publish'
pull: 'always' pull: 'always'
privileged: true privileged: true
command: [ '-H', 'unix:///drone/docker.sock' ]
environment: environment:
DOCKER_USERNAME: DOCKER_USERNAME:
@ -20,6 +21,6 @@ steps:
commands: commands:
- 'sleep 10' - 'sleep 10'
- 'docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD docker.io' - 'docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD docker.io'
- 'export DOCKER_HOST="tcp://localhost:2375"' - 'export DOCKER_HOST=unix:///drone/docker.sock'
- 'docker build --network host -t rakepanorama/ansible-deployment-container:v0.9 -t rakepanorama/ansible-deployment-container:latest -f Dockerfile.linux.amd64 .' - 'docker build --network host -t rakepanorama/ansible-deployment-container:v0.9 -t rakepanorama/ansible-deployment-container:latest -f Dockerfile.linux.amd64 .'
- 'docker push -a rakepanorama/ansible-deployment-container' - 'docker push -a rakepanorama/ansible-deployment-container'