From df3ca02e8b0d8e9f4ba7027e43eb1d35e6f93b80 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Fri, 7 Nov 2025 08:52:16 -0800 Subject: [PATCH] Always push latest for Docker. --- .github/workflows/cd.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 3098d314..515aa2aa 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -54,7 +54,8 @@ jobs: VERSION="${INPUT#v}" MAJOR=$(echo "$VERSION" | cut -d. -f1) MINOR=$(echo "$VERSION" | cut -d. -f2) - echo "version_tags=${VERSION},${MAJOR}.${MINOR},${MAJOR}" >> $GITHUB_ENV + # Include latest explicitly + echo "version_tags=${VERSION},${MAJOR}.${MINOR},${MAJOR},latest" >> $GITHUB_ENV else echo "version_tags=" >> $GITHUB_ENV fi @@ -69,17 +70,16 @@ jobs: flavor: | latest=auto tags: | - # Semver tags from real Git tags + # From real Git tags (v1.2.3) type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} - # Manual input derived tags + # Manual input tags type=raw,value=${{ env.version_tags }},enable=${{ env.version_tags != '' }} - # Fallbacks for branches/PRs + # Fallbacks type=ref,event=branch - type=ref,event=pr type=sha - name: Build and push Docker image