Move publishing to organization namespace
Publish Packwiz site / publish (push) Canceled after 0s

This commit is contained in:
2026-09-04 12:46:31 +00:00
parent 4749e800a3
commit a41e119720
3 changed files with 11 additions and 10 deletions
+6 -5
View File
@@ -175,17 +175,18 @@ Kubernetes/SWS provides static hosting for the published Packwiz repositories.
The publishing workflow runs [`scripts/build-site.sh`](../scripts/build-site.sh), The publishing workflow runs [`scripts/build-site.sh`](../scripts/build-site.sh),
which exports committed Git revisions into the documented URL layout, then which exports committed Git revisions into the documented URL layout, then
builds the multi-architecture image builds the multi-architecture image
`tea.ahmza.com/ahmza/mcpacks-site`. `tea.ahmza.com/ahmza.com/mcpacks-site`.
The workflow finally commits that image's immutable OCI digest to The workflow finally commits that image's immutable OCI digest to
`apps/mcpacks/deployment.yaml` in the `ahmza/k8s-starter-pack` repository. `apps/mcpacks/deployment.yaml` in the `ahmza.com/k8s-starter-pack` repository.
Argo CD notices that commit and performs the rollout; the workflow does not Argo CD notices that commit and performs the rollout; the workflow does not
hold Kubernetes credentials or change the cluster directly. hold Kubernetes credentials or change the cluster directly.
The Gitea Actions repository secret `GITEATOKEN` must be able to: The Gitea Actions repository secret `GITEATOKEN` must belong to `ci-bot`
and be able to:
- push packages owned by `ahmza` - push packages owned by the `ahmza.com` organization
- read and write `ahmza/k8s-starter-pack` - read and write `ahmza.com/k8s-starter-pack`
The `latest` image tag exists only to bootstrap the first Argo CD sync and for The `latest` image tag exists only to bootstrap the first Argo CD sync and for
human inspection. Normal rollouts use the exact content digest recorded in the human inspection. Normal rollouts use the exact content digest recorded in the
+4 -4
View File
@@ -15,7 +15,7 @@ concurrency:
env: env:
REGISTRY: tea.ahmza.com REGISTRY: tea.ahmza.com
IMAGE_NAME: ahmza/mcpacks-site IMAGE_NAME: ahmza.com/mcpacks-site
jobs: jobs:
publish: publish:
@@ -66,7 +66,7 @@ jobs:
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ gitea.repository_owner }} username: ci-bot
password: ${{ secrets.GITEATOKEN }} password: ${{ secrets.GITEATOKEN }}
# The SWS runtime image already publishes amd64 and arm64 variants and # The SWS runtime image already publishes amd64 and arm64 variants and
@@ -94,7 +94,7 @@ jobs:
- name: Check out cluster GitOps repository - name: Check out cluster GitOps repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
repository: ahmza/k8s-starter-pack repository: ahmza.com/k8s-starter-pack
ref: main ref: main
token: ${{ secrets.GITEATOKEN }} token: ${{ secrets.GITEATOKEN }}
path: _gitops path: _gitops
@@ -113,7 +113,7 @@ jobs:
manifest = Path("_gitops/apps/mcpacks/deployment.yaml") manifest = Path("_gitops/apps/mcpacks/deployment.yaml")
image = sys.argv[1] image = sys.argv[1]
prefix = " image: " prefix = " image: "
repository = "tea.ahmza.com/ahmza/mcpacks-site" repository = "tea.ahmza.com/ahmza.com/mcpacks-site"
lines = manifest.read_text().splitlines() lines = manifest.read_text().splitlines()
matches = [ matches = [
i for i, line in enumerate(lines) i for i, line in enumerate(lines)
+1 -1
View File
@@ -7,7 +7,7 @@
FROM ghcr.io/static-web-server/static-web-server:2.44.0@sha256:2c1a7c3e0feaea5859307403b74e1c575f3ec1499094fc077344173d11abaae2 FROM ghcr.io/static-web-server/static-web-server:2.44.0@sha256:2c1a7c3e0feaea5859307403b74e1c575f3ec1499094fc077344173d11abaae2
ARG VCS_REF=unknown ARG VCS_REF=unknown
LABEL org.opencontainers.image.source="https://tea.ahmza.com/ahmza/mcpacks" \ LABEL org.opencontainers.image.source="https://tea.ahmza.com/ahmza.com/mcpacks" \
org.opencontainers.image.revision="$VCS_REF" \ org.opencontainers.image.revision="$VCS_REF" \
org.opencontainers.image.description="Static Packwiz repositories for AGS Minecraft servers" org.opencontainers.image.description="Static Packwiz repositories for AGS Minecraft servers"