fix(release): publish assets to the public HTTPS Gitea origin
The release job container sees gitea.server_url as the internal http://gitea:3000 origin, so scripts/ci-release-assets.py refused to forward its token (run 865 failed at the publish step after packaging). Point the publisher at https://git.itexp.me, the origin the repository already uses for the public URL.
This commit is contained in:
1 parent
12d8a3d490
commit
34c2d93f43
1 file changed
+3
-1
@@ -212,7 +212,9 @@ jobs:
|
|||||||
- name: Publish release bundles, checksums, evidence, and SBOM to Gitea
|
- name: Publish release bundles, checksums, evidence, and SBOM to Gitea
|
||||||
if: startsWith(gitea.ref, 'refs/tags/v')
|
if: startsWith(gitea.ref, 'refs/tags/v')
|
||||||
env:
|
env:
|
||||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
# gitea.server_url inside the job container is the internal http://gitea:3000 origin;
|
||||||
|
# the publisher only forwards its token to the public HTTPS origin.
|
||||||
|
GITEA_SERVER_URL: https://git.itexp.me
|
||||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
RELEASE_TAG: ${{ gitea.ref_name }}
|
RELEASE_TAG: ${{ gitea.ref_name }}
|
||||||
|
|||||||
Reference in new issue
Block a user