fix: publish with PACKAGE_TOKEN, new update signing key #3
No files matched your search
@@ -8,6 +8,8 @@
|
|||||||
# - SIGNING_KEY repository secret: the armored private gpg key whose
|
# - SIGNING_KEY repository secret: the armored private gpg key whose
|
||||||
# public half is mkosi.extra/usr/lib/systemd/
|
# public half is mkosi.extra/usr/lib/systemd/
|
||||||
# import-pubring.pgp, which systemd-sysupdate checks.
|
# import-pubring.pgp, which systemd-sysupdate checks.
|
||||||
|
# - PACKAGE_TOKEN repository secret: a token of the package owner with only
|
||||||
|
# write:package. The job token can't write packages.
|
||||||
name: os
|
name: os
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -19,9 +21,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
os:
|
os:
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: dnf install -yq mkosi
|
run: dnf install -yq mkosi
|
||||||
@@ -55,7 +54,7 @@ jobs:
|
|||||||
working-directory: mkosi.output
|
working-directory: mkosi.output
|
||||||
env:
|
env:
|
||||||
PKG: ${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/agentos/latest
|
PKG: ${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/agentos/latest
|
||||||
AUTH: "Authorization: token ${{ gitea.token }}"
|
AUTH: "Authorization: token ${{ secrets.PACKAGE_TOKEN }}"
|
||||||
run: |
|
run: |
|
||||||
curl -fsS -H "$AUTH" -X DELETE "$PKG" || true
|
curl -fsS -H "$AUTH" -X DELETE "$PKG" || true
|
||||||
for f in agentos_*.efi agentos_*.usr-*.raw.zst agentos.qcow2 agentos_*.manifest SHA256SUMS.gpg SHA256SUMS; do
|
for f in agentos_*.efi agentos_*.usr-*.raw.zst agentos.qcow2 agentos_*.manifest SHA256SUMS.gpg SHA256SUMS; do
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user