multi branch support
All checks were successful
Build and Push to Gitea Registry / build-and-push (push) Successful in 7m8s

This commit is contained in:
2026-03-15 22:24:21 +05:30
parent 9e6beb728d
commit 994c7eab86

View File

@@ -2,8 +2,8 @@ name: Build and Push to Gitea Registry
on: on:
push: push:
branches: [ "main" ] branches: [ "main", "solid", "nuxt" ]
workflow_dispatch: # This enables the manual trigger button workflow_dispatch:
jobs: jobs:
build-and-push: build-and-push:
@@ -31,16 +31,18 @@ jobs:
with: with:
images: gitea.bsws.in/${{ github.repository }} images: gitea.bsws.in/${{ github.repository }}
tags: | 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 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 type=raw,value=tanstack-start,enable=${{ github.ref_name == 'main' }},priority=900
# 3. Standard branch fallback (e.g., start) type=raw,value=nuxt-{{sha}},enable=${{ github.ref_name == 'nuxt' }},priority=1000
type=ref,event=branch 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 - name: Inspect Generated Tags
run: | run: |
echo "The following tags will be applied:" echo "The following tags will be applied:"