diff --git a/.github/workflows/artifacts.yaml b/.github/workflows/artifacts.yaml
index e8e4b7c82e5cd07bc8acb4c26a49e94b3d74555f..409e75883ed7f982c74ea51347d90e103fb0a5f4 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