From 9e6beb728d1896e2172bc51f7c72f89ebbe67d2f Mon Sep 17 00:00:00 2001 From: Shishant Biswas Date: Sun, 15 Mar 2026 22:08:39 +0530 Subject: [PATCH] fix: image name by branch for said framework with sha --- .gitea/workflows/build-and-deploy.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index 462011f..bd3d11b 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -31,12 +31,21 @@ jobs: with: images: gitea.bsws.in/${{ github.repository }} tags: | - type=raw,value=tanstack-start-{{sha}},enable=${{ github.ref_name == 'main' }} + # 1. Unique composite tag (e.g., tanstack-start-6b31d4d) + # We use the 'priority' to ensure this is treated as a primary tag + type=raw,value=tanstack-start-{{sha}},enable=${{ github.ref_name == 'main' }},priority=1000 - type=raw,value=tanstack-start,enable=${{ github.ref_name == 'main' }} + # 2. The stable pointer (e.g., tanstack-start) + type=raw,value=tanstack-start,enable=${{ github.ref_name == 'main' }},priority=900 - type=ref,event=branch + # 3. Standard branch fallback (e.g., start) + type=ref,event=branch + - name: Inspect Generated Tags + run: | + echo "The following tags will be applied:" + echo "${{ steps.meta.outputs.tags }}" + - name: Build and push uses: docker/build-push-action@v6 with: