[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
7031dddf9a
commit
a2e77fc47f
@ -11,10 +11,6 @@ steps:
|
|||||||
pull: 'always'
|
pull: 'always'
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
DOCKER_USERNAME:
|
DOCKER_USERNAME:
|
||||||
from_secret: 'docker_username'
|
from_secret: 'docker_username'
|
||||||
@ -24,5 +20,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- 'sleep 10'
|
- 'sleep 10'
|
||||||
- 'docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD docker.io'
|
- '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'
|
||||||
|
Loading…
Reference in New Issue
Block a user