Skip to content

Commit

Permalink
Allow build for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
misery committed Feb 8, 2024
1 parent 58462de commit f6745b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [ main ]
tags:
- 'v*'
pull_request:
branches: [ main ]

jobs:
docker:
Expand Down Expand Up @@ -34,6 +36,7 @@ jobs:
-
name: Login to DockerHub
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -43,7 +46,7 @@ jobs:
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
-
Expand Down

0 comments on commit f6745b0

Please sign in to comment.