Login to allow pushing deploy container
This commit is contained in:
parent
6a815c455f
commit
3e82a90a1e
|
|
@ -42,6 +42,7 @@ deploy_watchtower:
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
script:
|
script:
|
||||||
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
||||||
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE/production:deploy
|
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE/production:deploy
|
||||||
- docker push $CI_REGISTRY_IMAGE/production:deploy
|
- docker push $CI_REGISTRY_IMAGE/production:deploy
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue