Skip to content

Commit

Permalink
Allow Docker pushes on release branches
Browse files Browse the repository at this point in the history
  • Loading branch information
eread committed Nov 18, 2024
1 parent 2d35dcc commit 697800c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ jobs:
context: .
file: ${{ env.DOCKERFILE }}
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' }}
push: ${{ (github.event_name != 'pull_request' &&
github.actor != 'dependabot[bot]') ||
startsWith(github.ref_name, 'release-plz') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

Expand All @@ -104,7 +106,9 @@ jobs:
context: .
file: ${{ env.DOCKERFILE_ALPINE }}
platforms: ${{ env.DOCKER_PLATFORMS }}
push: ${{ github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' }}
push: ${{ (github.event_name != 'pull_request' &&
github.actor != 'dependabot[bot]') ||
startsWith(github.ref_name, 'release-plz') }}
tags: ${{ steps.meta-alpine.outputs.tags }}
labels: ${{ steps.meta-alpine.outputs.labels }}

Expand Down

0 comments on commit 697800c

Please sign in to comment.