From dabaaf76ddcc67f4d557b3b5f9d9ca2fc7fa2377 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Thu, 7 Aug 2025 17:31:03 +0200 Subject: [PATCH 1/2] Changed GH action to publish images from the preview branch too --- .github/workflows/docker-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index f95dc1fe5e..7ff7903c3e 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -2,7 +2,7 @@ name: Create and publish a Docker image on: push: - branches: ["main"] + branches: ["main", "preview"] env: REGISTRY: ghcr.io @@ -31,9 +31,9 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - flavor: | - latest=true tags: | + # set latest tag for main branch only + type=raw,value=latest,enable={{is_default_branch}} type=ref,event=branch type=sha From 3cb2aa2097c04ecfe9d816bf73fc165a2aa6056f Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Fri, 8 Aug 2025 15:56:47 +0200 Subject: [PATCH 2/2] Hardcoded default branch name --- .github/workflows/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 7ff7903c3e..16408f6f53 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -33,7 +33,7 @@ jobs: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | # set latest tag for main branch only - type=raw,value=latest,enable={{is_default_branch}} + type=raw,value=latest,enable=main type=ref,event=branch type=sha