fix: image cache name

This commit is contained in:
ange 2025-10-21 20:14:29 +00:00
parent 4af4a54dbe
commit 80be42f615
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D

View file

@ -7,13 +7,13 @@ mkdir -p "$DOCKER_CONFIG"
[ -f .env ] && . ./.env [ -f .env ] && . ./.env
if [ -z "$IMAGEAPP" ]; then if [ -z "$IMAGEAPP" ]; then
REGISTRY="$(echo "$GITHUB_SERVER_URL" | sed 's .*:// ')" IMAGEAPP="${GITHUB_SERVER_URL#*://}/$INPUT_IMAGE"
IMAGEAPP="$REGISTRY/$INPUT_IMAGE"
fi fi
if [ "$INPUT_CACHE" = true ]; then if [ "$INPUT_CACHE" = true ]; then
set -- --import-cache "type=registry,ref=$IMAGEAPP/cache" \ IMAGECACHE="${IMAGEAPP%:*}/cache"
--export-cache "type=registry,ref=$IMAGEAPP/cache" set -- --import-cache "type=registry,ref=$IMAGECACHE" \
--export-cache "type=registry,ref=$IMAGECACHE"
fi fi
cat <<EOF > "$DOCKER_CONFIG/config.json" cat <<EOF > "$DOCKER_CONFIG/config.json"