#11 Moved login to before any registry actions
This commit is contained in:
parent
b340beab3c
commit
3c1eaf048c
@ -19,8 +19,8 @@ deploy:
|
|||||||
- name: docker:20.10.16-dind
|
- name: docker:20.10.16-dind
|
||||||
alias: docker
|
alias: docker
|
||||||
script:
|
script:
|
||||||
- docker build -t $CI_REGISTRY_IMAGE$CI_COMMIT_SHORT_SHA .
|
|
||||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
- docker build -t $CI_REGISTRY_IMAGE$CI_COMMIT_SHORT_SHA .
|
||||||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
|
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
|
||||||
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA $CI_REGISTRY_IMAGE:latest
|
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA $CI_REGISTRY_IMAGE:latest
|
||||||
- docker push $CI_REGISTRY_IMAGE:latest
|
- docker push $CI_REGISTRY_IMAGE:latest
|
Loading…
Reference in New Issue
Block a user