We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d706762 commit 8b67221Copy full SHA for 8b67221
.gitlab-ci.yml
@@ -26,10 +26,22 @@ build:image:
26
before_script:
27
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
28
script:
29
- - docker build --tag ${DOCKER_IMAGE}:${DOCKER_TAG} --tag ${DOCKER_IMAGE}:latest .
+ - docker build --tag ${DOCKER_IMAGE}:${DOCKER_TAG}
30
- docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
31
tags:
32
- 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
45
46
# Stage: deploy
47
0 commit comments