Run vendored artifact uploader directly
Staging Backend Quality Gate / validate (pull_request) Successful in 14m17s
Staging Backend Quality Gate / publish (pull_request) Has been skipped

This commit is contained in:
Jesse_Chen
2026-08-06 02:14:34 +08:00
parent 8842e834f3
commit fdd0dcdd3b
2 changed files with 35 additions and 23 deletions
+26 -16
View File
@@ -269,22 +269,32 @@ jobs:
artifacts/staging-images/manifest.env "$GITEA_SHA" "$IMAGE_REPOSITORY" >/dev/null
- name: Upload immutable staging image manifest
uses: ./.gitea/actions/upload-artifact
# act_runner 0.6.1 resolves local Node actions but does not export their
# `with` values as INPUT_* variables. Keep `with` for newer runners and
# provide the same variables explicitly for the current staging runner.
env:
INPUT_NAME: staging-image-manifest-${{ gitea.sha }}-${{ gitea.run_attempt }}
INPUT_PATH: artifacts/staging-images/manifest.env
'INPUT_IF-NO-FILES-FOUND': error
'INPUT_RETENTION-DAYS': '30'
'INPUT_COMPRESSION-LEVEL': '6'
INPUT_OVERWRITE: 'false'
with:
name: staging-image-manifest-${{ gitea.sha }}-${{ gitea.run_attempt }}
path: artifacts/staging-images/manifest.env
if-no-files-found: error
retention-days: 30
run: |
set -euo pipefail
test -n "${ACTIONS_RUNTIME_TOKEN:-}"
test -n "${ACTIONS_RESULTS_URL:-}"
test -n "${GITHUB_RUN_ID:-}"
test -n "${GITHUB_REPOSITORY:-}"
workdir="$(pwd -P)"
docker run --rm \
--user "$(id -u):$(id -g)" \
--volume "$workdir:$workdir" \
--workdir "$workdir" \
--env HOME=/tmp \
--env "INPUT_NAME=staging-image-manifest-$GITEA_SHA-$GITEA_RUN_ATTEMPT" \
--env INPUT_PATH=artifacts/staging-images/manifest.env \
--env 'INPUT_IF-NO-FILES-FOUND=error' \
--env 'INPUT_RETENTION-DAYS=30' \
--env 'INPUT_COMPRESSION-LEVEL=6' \
--env INPUT_OVERWRITE=false \
--env ACTIONS_RUNTIME_TOKEN \
--env ACTIONS_RESULTS_URL \
--env GITHUB_RUN_ID \
--env GITHUB_REPOSITORY \
--env "GITHUB_SHA=$GITEA_SHA" \
--env "GITHUB_WORKSPACE=$workdir" \
node:22-bookworm-slim \
node .gitea/actions/upload-artifact/dist/index.js
- name: Logout ACR registry
if: always()