We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0eecb8 commit fcd67f2Copy full SHA for fcd67f2
.gitlab-ci.yml
@@ -63,18 +63,14 @@ Docker Build:
63
dependencies:
64
- build_package
65
script:
66
- # fetches the latest image (not failing if image is not found)
67
- - docker pull $CI_REGISTRY_IMAGE:latest || true
68
# builds the project and passes vcs vars for LABEL
69
- # notice the cache-from, which is going to use the image we just pulled locally
70
# the built image is tagged locally with the commit SHA, and then pushed to
71
# the GitLab registry
72
- >
73
docker build
74
--pull
75
--build-arg VCS_REF=$CI_COMMIT_SHA
76
--build-arg VCS_URL=$CI_PROJECT_URL
77
- --cache-from $CI_REGISTRY_IMAGE:latest
78
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
79
.
80
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
0 commit comments