Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Only push on release
Browse files Browse the repository at this point in the history
  • Loading branch information
swissbuechi committed Nov 10, 2023
1 parent 033d5cb commit 30e63ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Docker image build and push
on:
release:
types: [published]
push:

permissions:
contents: read
Expand Down Expand Up @@ -52,7 +53,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: true
push: ${{ github.event_name == 'release' }}
file: ${{ matrix.dockerfile }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 30e63ae

Please sign in to comment.