From a666936694dd4765ce72e041f8af85e964fda535 Mon Sep 17 00:00:00 2001 From: Neha Sherpa Date: Thu, 5 Feb 2026 14:53:03 -0800 Subject: [PATCH] chore: Update Docker tags to use branch-sha format Consolidates Docker image tags to include both branch name and SHA in a single tag format (e.g., main-abc1234) while maintaining semver patterns for version releases and the latest tag for main branch. Removes redundant type=ref,event=branch and type=sha tags since the new branch-sha tag provides both pieces of information in a single tag. --- .github/workflows/publish-docker.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index d60e3e7..575465e 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -70,10 +70,8 @@ jobs: ghcr.io/${{ github.repository_owner }}/cachew squareup/cachew tags: | - # For main branch: latest, main, and sha - type=ref,event=branch + type=raw,value={{branch}}-{{sha}} type=raw,value=latest,enable={{is_default_branch}} - type=sha,prefix=sha- # For tags: v1.2.3 -> 1.2.3, 1.2, 1 type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}}