This commit is contained in:
parent
1d79f8d014
commit
da8875c89e
@ -5,7 +5,6 @@ steps:
|
|||||||
- DOCKER_HOST=tcp://docker:2375
|
- DOCKER_HOST=tcp://docker:2375
|
||||||
commands:
|
commands:
|
||||||
- apk add curl
|
- apk add curl
|
||||||
- sleep 5 # wait for docker service to come up
|
|
||||||
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD registry.yetaga.in
|
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD registry.yetaga.in
|
||||||
- docker build -t registry.yetaga.in/castor:latest .
|
- docker build -t registry.yetaga.in/castor:latest .
|
||||||
- docker push registry.yetaga.in/castor:latest
|
- docker push registry.yetaga.in/castor:latest
|
||||||
@ -14,10 +13,5 @@ steps:
|
|||||||
secrets: [docker_username, docker_password, compose_token]
|
secrets: [docker_username, docker_password, compose_token]
|
||||||
when:
|
when:
|
||||||
branch: "master"
|
branch: "master"
|
||||||
|
volumes:
|
||||||
services:
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
docker:
|
|
||||||
image: docker:18.09-dind
|
|
||||||
privileged: true
|
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
|
Loading…
Reference in New Issue
Block a user