Skip to content

Commit

Permalink
Check docker build on pull request (joohoi#39)
Browse files Browse the repository at this point in the history
Needed to ensure everything runs fine.
  • Loading branch information
gbonnefille authored Apr 29, 2022
1 parent 8d729c3 commit e50f6a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: docker

on:
pull_request:
push:
tags:
- "*"
Expand All @@ -10,7 +11,7 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
goreleaser:
docker:
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -37,6 +38,6 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
push: true
push: ${{ github.event_name != "pull_request" }} # Never push on pull-request
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit e50f6a8

Please sign in to comment.