Skip to content

Commit fcd67f2

Browse files
committed
Do not cache Docker layers to ensure really rebuilding Docker image (i.e. updating packages)
1 parent a0eecb8 commit fcd67f2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,14 @@ Docker Build:
6363
dependencies:
6464
- build_package
6565
script:
66-
# fetches the latest image (not failing if image is not found)
67-
- docker pull $CI_REGISTRY_IMAGE:latest || true
6866
# 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
7067
# the built image is tagged locally with the commit SHA, and then pushed to
7168
# the GitLab registry
7269
- >
7370
docker build
7471
--pull
7572
--build-arg VCS_REF=$CI_COMMIT_SHA
7673
--build-arg VCS_URL=$CI_PROJECT_URL
77-
--cache-from $CI_REGISTRY_IMAGE:latest
7874
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
7975
.
8076
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA

0 commit comments

Comments
 (0)