File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 2525 - amd64
2626 - arm64
2727 script :
28+ - CACHE_TO=""
29+ - |
30+ if [ "$C0_GH_REF_NAME" = "main" ]; then
31+ CACHE_TO="--cache-to type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache:${image}-${PLATFORM}"
32+ fi
2833 - >
2934 build_image
3035 $image
3136 $CI_PIPELINE_ID
3237 "
3338 --output type=registry,push-by-digest=true
3439 --metadata-file manifest-${CI_JOB_ID}.json
35- --cache-to type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache:${image}-${PLATFORM}
3640 --cache-from type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache:${image}-${PLATFORM}
41+ $CACHE_TO
3742 "
3843 ""
3944 artifacts :
4550 extends :
4651 - .image-build-base
4752 script :
53+ - CACHE_TO=""
54+ - |
55+ if [ "$C0_GH_REF_NAME" = "main" ]; then
56+ CACHE_TO="--cache-to type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache:${image}-${VARIANT}-${PLATFORM}"
57+ fi
4858 - >
4959 build_image
5060 $image
5363 --build-arg VARIANT=$VARIANT
5464 --output type=registry,push-by-digest=true
5565 --metadata-file manifest-${CI_JOB_ID}.json
56- --cache-to type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache:${image}-${VARIANT}-${PLATFORM}
5766 --cache-from type=registry,ref=ghcr.io/code0-tech/reticulum/ci-cache:${image}-${VARIANT}-${PLATFORM}
67+ $CACHE_TO
5868 "
5969 ""
6070 artifacts :
You can’t perform that action at this time.
0 commit comments