From dd9bddc245a0feff20dbfeb33e8ae11faac61ee1 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 9 Aug 2026 01:47:57 +1000 Subject: [PATCH] ci: build and push images to GHCR, drop the Gitea workflow Mirrors the existing Gitea deploy workflow's gate (fmt/vet/build/test, dashboard tests, tag<->changelog check) but publishes to ghcr.io/samcharles93/{archied,archie-agent} using the built-in GITHUB_TOKEN. Additive: docker-compose.yml and the carina watchtower setup are untouched, so production still runs off the Gitea-built images until that's explicitly cut over. .gitea/workflows/deploy.yml is removed from this checkout now that the Gitea remote is gone; the git.catlow.cloud-hosted copy is unaffected until that repo is pushed to again. --- {.gitea => .github}/workflows/deploy.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) rename {.gitea => .github}/workflows/deploy.yml (83%) diff --git a/.gitea/workflows/deploy.yml b/.github/workflows/deploy.yml similarity index 83% rename from .gitea/workflows/deploy.yml rename to .github/workflows/deploy.yml index bd076938b..146d06a95 100644 --- a/.gitea/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,7 +1,6 @@ -# Builds and pushes the archied and archie-agent images on every merge -# to main. carina's watchtower container (see docker-compose.yml) picks -# up the new images and restarts the running daemons -- this workflow -# never touches carina directly. +# Builds and pushes the archied and archie-agent images to GHCR on every +# merge to main. Mirrors .gitea/workflows/deploy.yml, which remains the +# production build path against git.catlow.cloud until that's cut over. name: deploy on: @@ -9,6 +8,10 @@ on: branches: [main] tags: ["archied/v*", "archie/v*"] +permissions: + contents: read + packages: write + jobs: gate: runs-on: ubuntu-latest @@ -87,8 +90,8 @@ jobs: with: fetch-depth: 0 - - name: Log in to registry - run: echo "${{ secrets.DEPLOY_TOKEN }}" | docker login git.catlow.cloud -u sam --password-stdin + - name: Log in to GHCR + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin - name: Build and push archied run: | @@ -101,13 +104,13 @@ jobs: docker build \ --build-arg GATEWAY_VERSION="$GATEWAY_VERSION" \ --build-arg RUNTIME_VERSION="$RUNTIME_VERSION" \ - -f Dockerfile.archied -t git.catlow.cloud/sam/archied:latest . - docker push git.catlow.cloud/sam/archied:latest + -f Dockerfile.archied -t ghcr.io/samcharles93/archied:latest . + docker push ghcr.io/samcharles93/archied:latest - name: Build and push archie-agent run: | RUNTIME_TAG="$(git tag --points-at HEAD --list 'archie/v*' | sort -V | tail -1)" RUNTIME_VERSION="${RUNTIME_TAG#archie/}" [ -n "$RUNTIME_VERSION" ] || RUNTIME_VERSION=dev - docker build --build-arg RUNTIME_VERSION="$RUNTIME_VERSION" -f Dockerfile -t git.catlow.cloud/sam/archie-agent:latest . - docker push git.catlow.cloud/sam/archie-agent:latest + docker build --build-arg RUNTIME_VERSION="$RUNTIME_VERSION" -f Dockerfile -t ghcr.io/samcharles93/archie-agent:latest . + docker push ghcr.io/samcharles93/archie-agent:latest