fix(ci): prune old registry package versions
Deployment Config CI / Deployment Config (push) Successful in 19s
Frontend CI / Frontend (push) Successful in 11m18s
Backend CI / Backend (push) Successful in 17m54s

This commit is contained in:
2026-05-13 23:22:58 +08:00
parent b3bd23e238
commit ecf3ee1ef0
3 changed files with 251 additions and 43 deletions
+5
View File
@@ -11,6 +11,8 @@ on:
- "Dockerfile.frontend"
- "Dockerfile.ops-web"
- ".dockerignore"
- "deploy/scripts/gitea-registry-images.sh"
- ".gitea/workflows/frontend-ci.yml"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
@@ -24,6 +26,8 @@ on:
- "Dockerfile.frontend"
- "Dockerfile.ops-web"
- ".dockerignore"
- "deploy/scripts/gitea-registry-images.sh"
- ".gitea/workflows/frontend-ci.yml"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
@@ -80,6 +84,7 @@ jobs:
REGISTRY_PLAIN_HTTP: "true"
IMAGE_LIST: frontend ops-web
DELETE_OLD_IMAGE_TAGS: "true"
KEEP_IMAGE_TAGS: "2"
run: |
set -eu
IMAGE_TAG="$(git rev-parse --short=8 HEAD)"