[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
da6ba678f9
commit
671da6401f
16
.drone.yml
16
.drone.yml
@ -19,10 +19,16 @@ steps:
|
|||||||
from_secret: 'docker_password'
|
from_secret: 'docker_password'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- name: 'docker_socket'
|
||||||
|
path: '/var/run/docker.sock'
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
- 'echo building image ${IMG}'
|
- 'echo building image ${IMG}'
|
||||||
- 'docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} docker.io'
|
- 'docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} docker.io'
|
||||||
- 'docker build -t ${IMG}:v0.9 -t ${IMG}:latest -f Dockerfile.linux.amd64 .'
|
- 'docker build -t ${IMG}:v0.9 -t ${IMG}:latest -f Dockerfile.linux.amd64 .'
|
||||||
- 'docker push -a'
|
- 'docker push -a'
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: 'docker_socket'
|
||||||
|
host:
|
||||||
|
path: '/var/run/docker.sock'
|
||||||
|
Loading…
Reference in New Issue
Block a user