ci(docker): Disable OCI mediatypes for buildx cache

This commit is contained in:
Georg Krause 2023-11-07 13:53:09 +01:00
parent 57ae3fae3c
commit 145ca4a1e7
1 changed files with 3 additions and 3 deletions

View File

@ -467,15 +467,15 @@ docker:
variables: variables:
BUILD_ARGS: > BUILD_ARGS: >
--set *.platform=linux/amd64,linux/arm64,linux/arm/v7 --set *.platform=linux/amd64,linux/arm64,linux/arm/v7
--set *.cache-from=type=registry,ref=$DOCKER_CACHE_IMAGE:$CI_COMMIT_BRANCH --set *.cache-from=type=registry,ref=$DOCKER_CACHE_IMAGE:$CI_COMMIT_BRANCH,oci-mediatypes=false
--set *.cache-to=type=registry,ref=$DOCKER_CACHE_IMAGE:$CI_COMMIT_BRANCH,mode=max --set *.cache-to=type=registry,ref=$DOCKER_CACHE_IMAGE:$CI_COMMIT_BRANCH,mode=max,oci-mediatypes=false
--push --push
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
variables: variables:
BUILD_ARGS: > BUILD_ARGS: >
--set *.platform=linux/amd64 --set *.platform=linux/amd64
--set *.cache-from=type=registry,ref=$DOCKER_CACHE_IMAGE:$CI_MERGE_REQUEST_TARGET_BRANCH_NAME --set *.cache-from=type=registry,ref=$DOCKER_CACHE_IMAGE:$CI_MERGE_REQUEST_TARGET_BRANCH_NAME,oci-mediatypes=false
image: $CI_REGISTRY/funkwhale/ci/docker:20 image: $CI_REGISTRY/funkwhale/ci/docker:20
services: services: