mirror of
https://github.com/langgenius/dify.git
synced 2026-03-10 03:00:20 +08:00
feat: split to multi cache key
This commit is contained in:
parent
26e9e60e60
commit
ea94679bf6
4
.github/workflows/build-api-image.sh
vendored
4
.github/workflows/build-api-image.sh
vendored
@ -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}" \
|
||||
|
||||
4
.github/workflows/build-web-image.sh
vendored
4
.github/workflows/build-web-image.sh
vendored
@ -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…
Reference in New Issue
Block a user