From 4805464f5437bd61e3e38f4e6cfc893c809156db Mon Sep 17 00:00:00 2001 From: jvyden Date: Mon, 1 Jan 2024 19:23:59 -0500 Subject: [PATCH] Allow docker images to be built in PRs --- .github/workflows/docker.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a06f7114..99f3b69f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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: @@ -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 }} \ No newline at end of file