Merge pull request 'Fix Docker artifact action inputs' (#10) from codex/fix-vendored-artifact-inputs-20260805 into main
Staging Backend Quality Gate / validate (push) Successful in 14m33s
Staging Backend Quality Gate / publish (push) Successful in 3m32s

This commit was merged in pull request #10.
This commit is contained in:
2026-08-06 03:03:35 +08:00
2 changed files with 6 additions and 6 deletions
+1 -4
View File
@@ -283,9 +283,6 @@ jobs:
--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 \
@@ -294,7 +291,7 @@ jobs:
--env "GITHUB_SHA=$GITEA_SHA" \
--env "GITHUB_WORKSPACE=$workdir" \
node:22-bookworm-slim \
node .gitea/actions/upload-artifact/dist/index.js
node -e 'process.env["INPUT_IF-NO-FILES-FOUND"]="error"; process.env["INPUT_RETENTION-DAYS"]="30"; process.env["INPUT_COMPRESSION-LEVEL"]="6"; require("./.gitea/actions/upload-artifact/dist/index.js")'
- name: Logout ACR registry
if: always()
@@ -209,9 +209,12 @@ test("Gitea quality gate validates before publishing an immutable ACR manifest",
assert.match(workflow, /get\("os"\)=="linux"/);
assert.match(workflow, /get\("architecture"\)=="amd64"/);
assert.match(workflow, /node frontend\/scripts\/staging-image-manifest\.mjs/);
assert.match(workflow, /node \.gitea\/actions\/upload-artifact\/dist\/index\.js/);
assert.match(workflow, /require\("\.\/\.gitea\/actions\/upload-artifact\/dist\/index\.js"\)/);
assert.match(workflow, /--env INPUT_PATH=artifacts\/staging-images\/manifest\.env/);
assert.match(workflow, /--env ['"]INPUT_IF-NO-FILES-FOUND=error['"]/);
assert.match(workflow, /process\.env\["INPUT_IF-NO-FILES-FOUND"\]="error"/);
assert.match(workflow, /process\.env\["INPUT_RETENTION-DAYS"\]="30"/);
assert.match(workflow, /process\.env\["INPUT_COMPRESSION-LEVEL"\]="6"/);
assert.doesNotMatch(workflow, /--env ['"]INPUT_(?:IF-NO-FILES-FOUND|RETENTION-DAYS|COMPRESSION-LEVEL)=/);
assert.match(workflow, /--env ACTIONS_RUNTIME_TOKEN/);
assert.match(workflow, /--env ACTIONS_RESULTS_URL/);
assert.match(workflow, /--env ['"]GITHUB_WORKSPACE=\$workdir['"]/);