From 8ea3b94756d94c12779f5283160da7a2dccbedc2 Mon Sep 17 00:00:00 2001 From: Kristofer Date: Fri, 10 Jan 2025 16:45:24 +0000 Subject: [PATCH] Add tags --- .github/workflows/docker.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 21fe8ca0bafb..fcec883db036 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -103,6 +103,13 @@ jobs: # Infix a slash when PUSH_REGISTRY is non-empty images: | ${{ env.PUSH_REGISTRY }}${{ env.PUSH_REGISTRY && '/' || '' }}${{ github.repository }}/${{ matrix.project }} + tags: | + type=ref,event=branch + # Git SHA + type=sha,format=short + type=sha,format=long + # SemVer by tag (e.g. v1.2.3) + type=semver,pattern={{version}} - name: Build and push Docker image uses: docker/build-push-action@v6