From 8ecf5338d58cf842f44113258429079c9360890e Mon Sep 17 00:00:00 2001 From: poslop Date: Wed, 9 Sep 2026 18:22:31 -0500 Subject: [PATCH] CI: build dev image on dev branch pushes (palette-dev deploy) --- .gitea/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index ebc20ad..ec1b031 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [main] + branches: [main, dev] tags: ['v*'] pull_request: @@ -23,8 +23,8 @@ jobs: run: go test -v ./... docker: - # build & push image only on tags (releases) - if: startsWith(github.ref, 'refs/tags/') + # build & push image only on tags (releases) and dev branch (dev deploy) + if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/dev' needs: test runs-on: [debian-latest] env: @@ -57,6 +57,6 @@ jobs: push: true tags: | git.archfox.org/poslop/palette:${{ gitea.ref_name }} - git.archfox.org/poslop/palette:latest + ${{ startsWith(gitea.ref, 'refs/tags/') && 'git.archfox.org/poslop/palette:latest' || '' }} cache-from: type=gha cache-to: type=gha,mode=max