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:
push:
branches: [ "main" ]
workflow_dispatch: # This enables the manual trigger button
branches: [ "main", "solid", "nuxt" ]
workflow_dispatch:
jobs:
build-and-push:
@@ -31,15 +31,17 @@ 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: |