Switching to local cache for buildx builds.
This commit is contained in:
@@ -17,8 +17,8 @@ then
|
||||
-t $CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:latest \
|
||||
-t $CI_REGISTRY_IMAGE:$UBUNTU_VER \
|
||||
--platform $PLATFORMS \
|
||||
--cache-from type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache \
|
||||
--cache-to type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache,mode=max,oci-mediatypes=true \
|
||||
--cache-from type=local,src=/cache/$CI_PROJECT_PATH/ubuntu-$UBUNTU_VER \
|
||||
--cache-to type=local,dest=/cache/$CI_PROJECT_PATH/ubuntu-$UBUNTU_VER,mode=max \
|
||||
--push --provenance false
|
||||
else
|
||||
docker buildx build . \
|
||||
@@ -29,8 +29,8 @@ else
|
||||
-t $CI_REGISTRY_IMAGE:$UBUNTU_VER \
|
||||
-t $CI_REGISTRY_IMAGE:latest \
|
||||
--platform $PLATFORMS \
|
||||
--cache-from type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache \
|
||||
--cache-to type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache,mode=max,oci-mediatypes=true \
|
||||
--cache-from type=local,src=/cache/$CI_PROJECT_PATH/ubuntu-$UBUNTU_VER \
|
||||
--cache-to type=local,dest=/cache/$CI_PROJECT_PATH/ubuntu-$UBUNTU_VER,mode=max \
|
||||
--push --provenance false
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user