Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit c0c4150

Browse files
authored
Merge pull request #16 from reload/push-on-default-branch
Only push to docker hub on default branch
2 parents f43bdd3 + cfa1072 commit c0c4150

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/docker-release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ jobs:
55

66
build:
77
name: Docker build and push
8-
# Only run on default branch.
9-
if: >
10-
${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
118
runs-on: ubuntu-latest
129
steps:
1310
- uses: actions/checkout@v3
@@ -32,7 +29,8 @@ jobs:
3229
with:
3330
file: Dockerfile
3431
builder: ${{ steps.buildx.outputs.name }}
35-
push: true
32+
# Only push on default branch.
33+
push: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
3634
context: .
3735
platforms: linux/amd64,linux/arm64
3836
labels: |

0 commit comments

Comments
 (0)