From c12ea8976cdc633dc7f59511e0fd06e44ce8da71 Mon Sep 17 00:00:00 2001 From: Jonathan Cormier Date: Wed, 6 Mar 2024 11:46:30 -0500 Subject: [PATCH] build: Attempt to only tag latest with builds started for the default branch Issue #548 --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 25cec5fd..638da187 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,10 +30,13 @@ jobs: sameersbn/redmine quay.io/sameersbn/redmine ghcr.io/sameersbn/redmine + flavor: | + latest=false tags: | type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} - latest + # set latest tag for default branch + type=raw,value=latest,enable={{is_default_branch}} - name: Set up Docker Buildx id: buildx