[DRONE] Rewrite build and publish CI
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Simon Cornet 2022-10-07 12:48:31 +02:00
parent ae2c293e8a
commit e279db465f

View File

@ -15,10 +15,10 @@ steps:
from_secret: 'docker_username' from_secret: 'docker_username'
DOCKER_PASSWORD: DOCKER_PASSWORD:
from_secret: 'docker_password' from_secret: 'docker_password'
DOCKER_HOST: 'tcp://localhost:2375'
commands: commands:
- 'sleep 1' - 'sleep 1'
- 'docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD' - 'docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD' docker.io
- 'export DOCKER_HOST="tcp://localhost:2375"'
- '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'