From 55ab76bfc5d8ae6961405132418c3adf1b734d84 Mon Sep 17 00:00:00 2001 From: DCCONSTRUCTIONS Date: Tue, 29 Sep 2026 18:16:44 +0300 Subject: [PATCH] fix(ci): publish REST-accessible immutable Gitea v4 artifacts --- .gitea/workflows/ci.yml | 2 +- docs/CONTINUOUS_DEPLOYMENT.md | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8d7278a..fb0d4c6 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: python3 "$source_root/infra/ci/qualify.py" check --commit "$SOURCE_COMMIT" --report "$job_root/qualification.json" python3 "$source_root/infra/ci/package_release.py" --report "$job_root/qualification.json" --run-id "$SOURCE_RUN_ID" --run-number "$SOURCE_RUN_NUMBER" --output-dir "$GITHUB_WORKSPACE/release" - name: Retain the qualified release in this Gitea run - uses: https://github.com/actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 + uses: https://github.com/ChristopherHX/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 with: name: device-core-release path: release diff --git a/docs/CONTINUOUS_DEPLOYMENT.md b/docs/CONTINUOUS_DEPLOYMENT.md index 768fb6d..0225e95 100644 --- a/docs/CONTINUOUS_DEPLOYMENT.md +++ b/docs/CONTINUOUS_DEPLOYMENT.md @@ -47,8 +47,8 @@ entry, branch policy, release contract and acceptance tests. Runner label: `nodedc-node22-build`; Node 22.21.0, npm 10.9.4, Python >=3.9 and Git must be available in the reviewed build image. The workflow fetches the exact pushed SHA from our Gitea. After qualification it uses the upstream -`actions/upload-artifact` v3 implementation pinned to commit -`ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5` to retain the bundle in **our Gitea**. +Gitea-compatible `ChristopherHX/gitea-upload-artifact` v4 implementation +pinned to commit `81f940d004763f986ba3582c007fd842dd5cb0d7` to retain the bundle in **our Gitea**. The upload uses the job's short-lived artifact credential, not a production credential. The workflow's repository token has read-only content access. `infra/ci/sources.lock.json` pins Design Guideline, Platform and Launcher to full commits; @@ -83,6 +83,12 @@ and `release.json` receipt. The archive declares `device-core-release.v1` with the exact source SHA, run id/number and file digests. It cannot choose Compose files, host roots, install commands or database operations. This new artifact type still needs the reviewed Platform runner extension before installation. +Run 3 (commit `415d5e73d7ca0cc283deb9b79a9f5f99fec54ed7`) passed all +qualification steps on Synology. Its legacy v3 upload succeeded but is not +returned by the Gitea REST artifact API. Therefore the publication step now +uses the Gitea-compatible v4 uploader; successful REST retrieval and digest +verification are separate acceptance gates. + Bundles remain in Gitea for 30 days; installed releases will additionally be retained by the canonical NAS journal/archive. Expiry is not a successful deployment and must never be silently ignored by the controller.