Skip to content

Commit 8b67221

Browse files
committed
Add latest tag
Signed-off-by: Alexandra <[email protected]>
1 parent d706762 commit 8b67221

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.gitlab-ci.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,22 @@ build:image:
2626
before_script:
2727
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
2828
script:
29-
- docker build --tag ${DOCKER_IMAGE}:${DOCKER_TAG} --tag ${DOCKER_IMAGE}:latest .
29+
- docker build --tag ${DOCKER_IMAGE}:${DOCKER_TAG}
3030
- docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
3131
tags:
3232
- docker-image-builder
33+
34+
build:image-latest:
35+
stage: build
36+
before_script:
37+
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
38+
script:
39+
- docker build --tag ${DOCKER_IMAGE}:latest .
40+
- docker push ${DOCKER_IMAGE}:latest
41+
only:
42+
- master
43+
tags:
44+
- docker-image-builder
3345

3446
# Stage: deploy
3547

0 commit comments

Comments
 (0)