feat: split to multi cache key

pull/102/head
John Wang 3 years ago
parent 26e9e60e60
commit ea94679bf6

@ -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}" \

@ -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}" \

Loading…
Cancel
Save