Skip to content

Commit

Permalink
Allow docker images to be built in PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Jan 2, 2024
1 parent 730954c commit 4805464
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Create and publish a Docker image
name: Create Docker image

on:
push:
branches: ['main']
tags: ["*"]
pull_request:
branches: ['main']

jobs:
build-and-push-image:
Expand Down Expand Up @@ -33,6 +35,6 @@ jobs:
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 4805464

Please sign in to comment.