From bf6433df5bcf1db395028e09bdac77b488a1937c Mon Sep 17 00:00:00 2001 From: joe miller Date: Sat, 18 May 2024 23:05:55 +0000 Subject: [PATCH] ci(gha): use date in image tags for better sorting --- .github/workflows/ci.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 583ffe8..f687d02 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -56,8 +56,9 @@ jobs: with: images: ghcr.io/${{ github.repository_owner }}/k8s-pvc-tagger tags: | - # minimal (short sha). Generates an image tag like `sha-` - type=sha + # generates tags like: + # ghcr.io/planetscale/k8s-pvc-tagger:2024-05-18-e5296f2 + type=raw,value={{date 'YYYY-MM-DD'}}-{{sha}} - name: login to ghcr.io uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3