Fix artifact inputs in Docker uploader
Staging Backend Quality Gate / validate (pull_request) Successful in 11m18s
Staging Backend Quality Gate / publish (pull_request) Has been skipped

This commit is contained in:
Jesse_Chen
2026-08-06 02:50:40 +08:00
parent 2f7654e260
commit 35fa0f0c78
2 changed files with 6 additions and 6 deletions
@@ -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['"]/);