From 994c7eab8641f10c2c102a8d56f0a8e6fd225c55 Mon Sep 17 00:00:00 2001 From: Shishant Biswas Date: Sun, 15 Mar 2026 22:24:21 +0530 Subject: [PATCH] multi branch support --- .gitea/workflows/build-and-deploy.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index bd3d11b..822de05 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -2,8 +2,8 @@ name: Build and Push to Gitea Registry on: push: - branches: [ "main" ] - workflow_dispatch: # This enables the manual trigger button + branches: [ "main", "solid", "nuxt" ] + workflow_dispatch: jobs: build-and-push: @@ -31,16 +31,18 @@ jobs: with: images: gitea.bsws.in/${{ github.repository }} tags: | - # 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 - - # 2. The stable pointer (e.g., tanstack-start) type=raw,value=tanstack-start,enable=${{ github.ref_name == 'main' }},priority=900 - # 3. Standard branch fallback (e.g., start) - type=ref,event=branch - + type=raw,value=nuxt-{{sha}},enable=${{ github.ref_name == 'nuxt' }},priority=1000 + type=raw,value=nuxt,enable=${{ github.ref_name == 'nuxt' }},priority=900 + + + type=raw,value=solid-start-{{sha}},enable=${{ github.ref_name == 'solid' }},priority=1000 + type=raw,value=solid-start,enable=${{ github.ref_name == 'solid' }},priority=900 + + type=ref,event=branch,enable=${{ github.ref_name != 'main' && github.ref_name != 'solid' && github.ref_name != 'nuxt' }} + - name: Inspect Generated Tags run: | echo "The following tags will be applied:"