feat: split to multi cache key

This commit is contained in:
John Wang 2023-05-19 13:14:07 +08:00
parent 26e9e60e60
commit ea94679bf6
2 changed files with 4 additions and 4 deletions

View File

@ -40,8 +40,8 @@ EOF
#
cd api
docker buildx build \
--cache-to type=gha,mode=max,scope=$CACHE_FROM_TAG-image \
--cache-from type=gha,mode=max,scope=$CACHE_FROM_TAG-image \
--cache-to type=gha,mode=max,scope=$CACHE_FROM_TAG-web-image \
--cache-from type=gha,mode=max,scope=$CACHE_FROM_TAG-web-image \
--platform=linux/amd64,linux/arm64 \
--build-arg COMMIT_SHA=${SHA} \
-t "${API_REPO_NAME}:${SHA}" \

View File

@ -40,8 +40,8 @@ EOF
#
cd web
docker buildx build \
--cache-to type=gha,mode=max,scope=$CACHE_FROM_TAG-image \
--cache-from type=gha,mode=max,scope=$CACHE_FROM_TAG-image \
--cache-to type=gha,mode=max,scope=$CACHE_FROM_TAG-api-image \
--cache-from type=gha,mode=max,scope=$CACHE_FROM_TAG-api-image \
--build-arg COMMIT_SHA=${SHA} \
--platform=linux/amd64,linux/arm64 \
-t "${WEB_REPO_NAME}:${SHA}" \