Skip to content

Commit

Permalink
Build stage conditionol skipper added for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
susithrupasinghe committed Jul 15, 2024
1 parent 6a5f266 commit c9fcdab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ jobs:
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
if: github.event_name != 'pull_request' # Don't push on PR
id: build-and-push
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:src"
push: ${{ github.event_name != 'pull_request' }} # Don't push on PR
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
Expand Down

0 comments on commit c9fcdab

Please sign in to comment.