From 7df8e15d21b76dc445a37269dd2e6e41725197b4 Mon Sep 17 00:00:00 2001 From: Lars Seipel <ls@slrz.net> Date: Mon, 24 Feb 2025 22:08:38 +0100 Subject: [PATCH] build: push container image with tags based on commit SHA --- .github/workflows/artifacts.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/artifacts.yaml b/.github/workflows/artifacts.yaml index e8e4b7c8..409e7588 100644 --- a/.github/workflows/artifacts.yaml +++ b/.github/workflows/artifacts.yaml @@ -86,8 +86,12 @@ jobs: type=ref,event=pr,prefix=pr-,suffix=-${{ matrix.variant }} type=semver,pattern={{raw}},suffix=-${{ matrix.variant }} type=raw,value=latest,enable={{is_default_branch}},suffix=-${{ matrix.variant }} + type=sha,enable=${{ matrix.variant == 'alpine' }} + type=sha,suffix=-${{ matrix.variant }} labels: | org.opencontainers.image.documentation=https://dexidp.io/docs/ + env: + DOCKER_METADATA_SHORT_SHA_LENGTH: 12 # Multiple exporters are not supported yet # See https://github.com/moby/buildkit/pull/2760 -- GitLab