[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
0ae8ecbc7e
commit
592e2943c5
@ -11,13 +11,6 @@ steps:
|
|||||||
pull: 'always'
|
pull: 'always'
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|
||||||
environment:
|
|
||||||
IMG: 'rakepanorama/ansible-deployment-container'
|
|
||||||
DOCKER_USER:
|
|
||||||
from_secret: 'docker_username'
|
|
||||||
DOCKER_PASS:
|
|
||||||
from_secret: 'docker_password'
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: 'docker_socket'
|
- name: 'docker_socket'
|
||||||
path: '/var/run/docker.sock'
|
path: '/var/run/docker.sock'
|
||||||
@ -25,7 +18,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- 'echo building image ${IMG}'
|
- 'echo building image ${IMG}'
|
||||||
- 'docker login -u rakepanorama --password=8qE9RvDSFt2KNfyQ docker.io'
|
- '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'
|
- 'docker push -a'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user