[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 14:12:13 +02:00
parent 0ae8ecbc7e
commit 592e2943c5

View File

@ -11,13 +11,6 @@ steps:
pull: 'always'
privileged: true
environment:
IMG: 'rakepanorama/ansible-deployment-container'
DOCKER_USER:
from_secret: 'docker_username'
DOCKER_PASS:
from_secret: 'docker_password'
volumes:
- name: 'docker_socket'
path: '/var/run/docker.sock'
@ -25,7 +18,7 @@ steps:
commands:
- 'echo building image ${IMG}'
- 'docker login -u rakepanorama --password=8qE9RvDSFt2KNfyQ docker.io'
- 'docker build -t ${IMG}:v0.9 -t ${IMG}:latest -f Dockerfile.linux.amd64 .'
- 'docker build -t rakepanorama/ansible-deployment-container:v0.9 -t rakepanorama/ansible-deployment-container:latest -f Dockerfile.linux.amd64 .'
- 'docker push -a'
volumes: