From de7890c20547b6705c0763781770892021a64223 Mon Sep 17 00:00:00 2001 From: 0xd6cb6d73 <72226198+0xd6cb6d73@users.noreply.github.com> Date: Tue, 1 Sep 2026 17:08:17 +0200 Subject: [PATCH] Build Docker images on tag pushes Co-authored-by: Codex --- .github/workflows/publish_docker_image.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish_docker_image.yml b/.github/workflows/publish_docker_image.yml index 7ffef3777..32c0f5dac 100644 --- a/.github/workflows/publish_docker_image.yml +++ b/.github/workflows/publish_docker_image.yml @@ -1,9 +1,9 @@ name: Create and publish a Docker image on: - release: - types: [published] - workflow_dispatch: + push: + tags: + - '**' permissions: contents: read @@ -37,11 +37,10 @@ jobs: uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - flavor: | - latest=auto - prefix=slim-,onlatest=true - suffix= - + tags: | + type=ref,event=tag,prefix=slim- + type=raw,value=slim-latest + - name: Build and push Docker image (slim) uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 with: @@ -51,12 +50,15 @@ jobs: labels: ${{ steps.meta-slim.outputs.labels }} build-args: | VARIANT=slim - + - name: Extract metadata (tags, labels) for Docker (full variant) id: meta-full uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=ref,event=tag + type=raw,value=latest - name: Build and push Docker image (full) uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825