File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,14 @@ variables:
1717 DOCKER_BUILDKIT : 1
1818 DOCKER_PLATFORM : " "
1919 DOCKER_TARGET : " "
20+ DOCKER_CACHE_FULL_TAG : $CI_REGISTRY_IMAGE/$DOCKER_IMAGE_NAME:cache
2021 before_script :
2122 - apk add --no-cache bash git
2223 script :
2324 - docker buildx create --use
2425 - docker buildx inspect --bootstrap
2526 - *docker-gitlab-login
26- - echo "Building $DOCKER_IMAGE_FULL_TAG - Cache from $DOCKER_IMAGE_NAME:cache "
27+ - echo "Building $DOCKER_IMAGE_FULL_TAG - Cache from $DOCKER_CACHE_FULL_TAG "
2728 - if [[ -n "$DOCKER_TARGET" ]]; then export TARGET_ARG="--target $DOCKER_TARGET"; fi;
2829 - if [[ -n "$DOCKER_PLATFORM" ]]; then export PLATFORM_ARG="--platform $DOCKER_PLATFORM"; fi;
2930 - if [[ -n "$DOCKER_PLATFORM" ]]; then export PLATFORM_SUFFIX="-$(echo $DOCKER_PLATFORM | sed 's/\///')"; fi;
@@ -34,8 +35,8 @@ variables:
3435 $TARGET_ARG \
3536 --tag $DOCKER_IMAGE_FULL_TAG$PLATFORM_SUFFIX \
3637 $PLATFORM_ARG \
37- --cache-from type=registry,ref=$DOCKER_IMAGE_NAME:cache \
38- --cache-to type=registry,ref=$DOCKER_IMAGE_NAME:cache \
38+ --cache-from type=registry,ref=$DOCKER_CACHE_FULL_TAG \
39+ --cache-to type=registry,ref=$DOCKER_CACHE_FULL_TAG \
3940 .
4041
4142# Architectures are hardcoded for multiarch, need to make this better
You can’t perform that action at this time.
0 commit comments