ci: publish packages and the catalogue to the Gitea registry
publish / publish (push) Successful in 2m19s
publish / publish (push) Successful in 2m19s
This commit is contained in:
3 files changed
+6
-6
No files matched your search
@@ -23,9 +23,9 @@ jobs:
|
|||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
- name: Install skopeo
|
- name: Install skopeo
|
||||||
run: sudo apt-get update && sudo apt-get install -y skopeo
|
run: sudo apt-get update && sudo apt-get install -y skopeo
|
||||||
- name: Log in to GHCR
|
- name: Log in to the Gitea registry
|
||||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | skopeo login ghcr.io -u "${{ github.actor }}" --password-stdin
|
run: echo "${{ secrets.DEPLOY_TOKEN }}" | skopeo login git.catlow.cloud -u "${{ github.actor }}" --password-stdin
|
||||||
- name: Publish packages and the signed catalogue
|
- name: Publish packages and the signed catalogue
|
||||||
env:
|
env:
|
||||||
ARCHIPELAGO_CATALOGUE_KEY: ${{ secrets.ARCHIPELAGO_CATALOGUE_KEY }}
|
ARCHIPELAGO_CATALOGUE_KEY: ${{ secrets.ARCHIPELAGO_CATALOGUE_KEY }}
|
||||||
run: scripts/publish.sh ghcr.io/${{ github.repository_owner }}/archipelago
|
run: scripts/publish.sh git.catlow.cloud/sam/archipelago
|
||||||
@@ -44,7 +44,7 @@ so every one of them holds to these before it ships:
|
|||||||
|
|
||||||
## Publish and install
|
## Publish and install
|
||||||
|
|
||||||
Every push to `main` packs each package to `ghcr.io/samcharles93/archipelago`
|
Every push to `main` packs each package to `git.catlow.cloud/sam/archipelago`
|
||||||
and publishes the catalogue that lists them, signed with the
|
and publishes the catalogue that lists them, signed with the
|
||||||
`ARCHIPELAGO_CATALOGUE_KEY` secret. archie-core trusts that catalogue's key,
|
`ARCHIPELAGO_CATALOGUE_KEY` secret. archie-core trusts that catalogue's key,
|
||||||
so its Extensions page lists every package with an Install button.
|
so its Extensions page lists every package with an Install button.
|
||||||
|
|||||||
+2
-2
@@ -4,11 +4,11 @@
|
|||||||
# the catalogue with its issue time and signs it; archie-core refuses a
|
# the catalogue with its issue time and signs it; archie-core refuses a
|
||||||
# catalogue older than the newest it has accepted, so the stamp is what keeps
|
# catalogue older than the newest it has accepted, so the stamp is what keeps
|
||||||
# an older validly signed catalogue from being replayed.
|
# an older validly signed catalogue from being replayed.
|
||||||
# ARCHIPELAGO_CATALOGUE_KEY=... scripts/publish.sh ghcr.io/samcharles93/archipelago
|
# ARCHIPELAGO_CATALOGUE_KEY=... scripts/publish.sh git.catlow.cloud/sam/archipelago
|
||||||
# Each package is <surface>-<name>:<version>; the catalogue is catalogue:latest.
|
# Each package is <surface>-<name>:<version>; the catalogue is catalogue:latest.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
registry=${1:?registry prefix, e.g. ghcr.io/samcharles93/archipelago}
|
registry=${1:?registry prefix, e.g. git.catlow.cloud/sam/archipelago}
|
||||||
root=$(cd "$(dirname "$0")/.." && pwd)
|
root=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
work=$(mktemp -d)
|
work=$(mktemp -d)
|
||||||
trap 'rm -rf "$work"' EXIT
|
trap 'rm -rf "$work"' EXIT
|
||||||
|
|||||||
Reference in new issue
Block a user