From 30b037ff9c8fc93ac3cfb1b63c927cf4350ec3f2 Mon Sep 17 00:00:00 2001 From: josh Date: Sat, 28 Mar 2026 10:27:23 -0400 Subject: [PATCH] feat: build :dev Docker image on push to dev MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a build-dev job to ci.yml that fires after tests pass on direct pushes to dev (not PRs). Pushes two tags to the registry: :dev — mutable, always the latest integrated dev state :dev- — immutable, for tracing exactly which commit is running Staging servers can pull :dev to test before a release PR is opened. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 856da66..f2f4275 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [dev, main] +env: + IMAGE: ${{ vars.REGISTRY_HOST }}/${{ gitea.repository_owner }}/catalyst + jobs: test: runs-on: ubuntu-latest @@ -21,3 +24,27 @@ jobs: - run: npm ci - run: npm test + + build-dev: + runs-on: ubuntu-latest + needs: test + if: github.event_name == 'push' && github.ref == 'refs/heads/dev' + + steps: + - uses: actions/checkout@v4 + + - name: Log in to registry + uses: docker/login-action@v3 + with: + registry: ${{ vars.REGISTRY_HOST }} + username: ${{ gitea.actor }} + password: ${{ secrets.TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: | + ${{ env.IMAGE }}:dev + ${{ env.IMAGE }}:dev-${{ gitea.sha }}