From e1e73cd26044f99ee4812a4e5216692641ee3532 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Thu, 9 Oct 2025 16:12:27 -0700 Subject: [PATCH] Docker: update for main branch transition Triggers on 'main' --- .github/workflows/docker-image.yml | 26 ++++++++++++++++---------- docs/deploy-docker.md | 6 ++++++ 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index b391ccf88..153a87ed8 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -12,10 +12,9 @@ name: Create and publish Docker images on: push: branches: - - v2-dev - #- v1-stable # Disabled as the v* tag is used for stable releases + - main # Primary branch (Big-AGI Open) tags: - - 'v*' # Trigger on version tags (e.g., v1.7.0) + - 'v2.*' # Stable releases (v2.0.0, v2.1.0, etc.) env: REGISTRY: ghcr.io @@ -54,14 +53,21 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | - type=raw,value=development,enable=${{ github.ref == 'refs/heads/v2-dev' }} # For v2-dev branch - 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,format=short,prefix=sha- # Just in case none of the above applies + # Development: main branch + type=raw,value=development,enable=${{ github.ref == 'refs/heads/main' }} + + # Latest: v2.x releases (safe default) + type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v2.') }} + + # Stable: v2.x releases (alias) + type=raw,value=stable,enable=${{ startsWith(github.ref, 'refs/tags/v2.') }} + + # Version tags (v2.0.0, 2.0.0) + type=ref,event=tag + type=semver,pattern={{version}} labels: | - org.opencontainers.image.title=Big-AGI - org.opencontainers.image.description=Generative AI suite powered by state-of-the-art models + org.opencontainers.image.title=Big-AGI Open + org.opencontainers.image.description=Big-AGI Open - Generative AI suite with support for latest models (o3, GPT-5 Pro, Gemini 2.0, DeepSeek R1) and modern architecture org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }} org.opencontainers.image.documentation=https://big-agi.com diff --git a/docs/deploy-docker.md b/docs/deploy-docker.md index 8314ee817..f2970174a 100644 --- a/docs/deploy-docker.md +++ b/docs/deploy-docker.md @@ -31,6 +31,12 @@ file. ### Official Images: [ghcr.io/enricoros/big-agi](https://github.com/enricoros/big-agi/pkgs/container/big-agi) +#### Available Tags + +- **`:latest`** / **`:stable`** - Latest stable release (recommended) +- **`:development`** - Main branch (bleeding edge) +- **`:v2.0.0`** - Specific versions + #### Run using *docker* 🚀 ```bash