[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:06:29 +02:00
parent da6ba678f9
commit 671da6401f

View File

@ -19,10 +19,16 @@ steps:
from_secret: 'docker_password'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- name: 'docker_socket'
path: '/var/run/docker.sock'
commands:
- 'echo building image ${IMG}'
- 'docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} docker.io'
- 'docker build -t ${IMG}:v0.9 -t ${IMG}:latest -f Dockerfile.linux.amd64 .'
- 'docker push -a'
- 'echo building image ${IMG}'
- 'docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} docker.io'
- 'docker build -t ${IMG}:v0.9 -t ${IMG}:latest -f Dockerfile.linux.amd64 .'
- 'docker push -a'
volumes:
- name: 'docker_socket'
host:
path: '/var/run/docker.sock'