From b8b3c62729ecb300caf784b244cccddf2d7e16bd Mon Sep 17 00:00:00 2001 From: Shishant Biswas Date: Sun, 15 Mar 2026 21:39:34 +0530 Subject: [PATCH] fix: latest tag image name (forced) --- .gitea/workflows/build-and-deploy.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index 4b781bb..218f2d4 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -31,9 +31,16 @@ jobs: with: images: gitea.bsws.in/${{ github.repository }} tags: | - type=raw,value=tanstack-start-{{sha}},enable=${{ github.ref == 'refs/heads/start' }} - type=raw,value=tanstack-start,enable=${{ github.ref == 'refs/heads/start' }} + # 1. The specific composite tag for the 'start' branch + type=raw,value=tanstack-start-{{sha}},enable=${{ github.ref_name == 'start' }} + + # 2. The 'latest' pointer for the 'start' branch + type=raw,value=tanstack-start,enable=${{ github.ref_name == 'start' }} + # 3. FALLBACK: Always create a tag so the build doesn't crash + # This will use the branch name automatically (e.g. :start) + type=ref,event=branch + - name: Build and push uses: docker/build-push-action@v6 with: