Skip to content

Commit

Permalink
Only build images on pull requests when Dockerfiles have changed
Browse files Browse the repository at this point in the history
  • Loading branch information
sweoggy committed Oct 3, 2023
1 parent 2c32294 commit 20b7f70
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 @@ -7,10 +7,13 @@ on:
tags:
- 'v*'
pull_request:
paths:
- '**.Dockerfile'
- '.github/workflows/docker.yaml'

jobs:
push:
name: 'Push Docker images'
name: 'Build and (conditionally) push Docker images'
strategy:
matrix:
stage: ['cli', 'scan', 'resolution']
Expand Down

0 comments on commit 20b7f70

Please sign in to comment.