X Tutup
Skip to content

Commit ba11fa2

Browse files
committed
💚 Update .gitlab-ci.yml to tag docker images with pipeline id
1 parent 23841d7 commit ba11fa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ deploy_registry:
3030
--build-arg VCS_REF=$CI_COMMIT_SHORT_SHA
3131
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
3232
-t $CI_REGISTRY_IMAGE .
33-
- docker tag $CI_REGISTRY_IMAGE $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
34-
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
33+
- docker tag $CI_REGISTRY_IMAGE $CI_REGISTRY_IMAGE:$CI_PIPELINE_ID
34+
- docker push $CI_REGISTRY_IMAGE:$CI_PIPELINE_ID
3535
- docker push $CI_REGISTRY_IMAGE
3636
only:
3737
- master

0 commit comments

Comments
 (0)
X Tutup