Skip to content

Commit b9de8eb

Browse files
committed
Write cache to different image tags
1 parent 37b509e commit b9de8eb

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.gitlab/ci/container-build.gitlab-ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@
2929
build_image
3030
$image
3131
$CI_PIPELINE_ID
32-
"--output type=registry,push-by-digest=true --metadata-file manifest-${CI_JOB_ID}.json
33-
--cache-to type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache "
32+
"
33+
--output type=registry,push-by-digest=true
34+
--metadata-file manifest-${CI_JOB_ID}.json
35+
--cache-to type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache:${image}-${PLATFORM}
36+
--cache-from type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache:${image}-${PLATFORM}
37+
"
3438
""
3539
artifacts:
3640
paths:

support/helpers.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ function build_image() {
4040
-t "ghcr.io/code0-tech/reticulum/ci-builds/$image$reticulum_push_tag" \
4141
-f "container/$image/Dockerfile" \
4242
--build-arg RETICULUM_IMAGE_TAG=$reticulum_tag \
43-
--cache-from type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache \
4443
$build_args \
4544
.
4645
}

0 commit comments

Comments
 (0)