Finalize v1 legacy workflow - v1.1* only, as 'v1' 'v1-stable' 'v1.*' tags

This commit is contained in:
Enrico Ros
2025-10-09 13:55:05 -07:00
parent 258b19e2f4
commit d96467f850
+15 -10
View File
@@ -11,11 +11,8 @@ name: Create and publish Docker images
on:
push:
branches:
- main
#- main-stable # Disabled as the v* tag is used for stable releases
tags:
- 'v*' # Trigger on version tags (e.g., v1.7.0)
- 'v1.1*' # V1 legacy tags only (v1.10.x - v1.19.x range)
env:
REGISTRY: ghcr.io
@@ -51,10 +48,13 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=stable,enable=${{ github.ref == 'refs/heads/v1-stable' }}
type=ref,event=tag # Use the tag name as a tag for tag builds
type=semver,pattern={{version}} # Generate semantic versioning tags for tag builds
type=sha # Just in case none of the above applies
# V1 legacy pointers
type=raw,value=v1
type=raw,value=v1-stable
# Exact version tags (v1.16.11 and 1.16.11)
type=ref,event=tag
type=semver,pattern={{version}}
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
@@ -64,5 +64,10 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: NEXT_PUBLIC_GA4_MEASUREMENT_ID=${{ secrets.GA4_MEASUREMENT_ID }}
labels: |
org.opencontainers.image.title=Big-AGI v1 (Legacy)
org.opencontainers.image.description=Big-AGI v1 - Legacy version. For the latest version, see GitHub and big-agi.com
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.documentation=https://big-agi.com
build-args: |
NEXT_PUBLIC_GA4_MEASUREMENT_ID=${{ secrets.GA4_MEASUREMENT_ID }}