Skip to content

Commit 37b509e

Browse files
committed
Add build cache
1 parent 6449f22 commit 37b509e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
build_image
3030
$image
3131
$CI_PIPELINE_ID
32-
"--output type=registry,push-by-digest=true --metadata-file manifest-${CI_JOB_ID}.json"
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 "
3334
""
3435
artifacts:
3536
paths:

support/helpers.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ 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 \
4344
$build_args \
4445
.
4546
}

0 commit comments

Comments
 (0)