Skip to content

Commit

Permalink
Add workflow for testing dockerfiles if changes
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <[email protected]>
  • Loading branch information
JorTurFer committed Mar 2, 2022
1 parent 06b9665 commit 2ebc26f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,27 @@ jobs:
- name: Test
run: make test

validate-dockerfiles:
name: Validate Dockerfiles
runs-on: ubuntu-latest
container: ghcr.io/kedacore/build-tools:main
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 1

- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
dockerfiles:
- 'Dockerfile*'
- name: Build images
if: steps.filter.outputs.dockerfiles == 'true'
run: make docker-build

validate-build-tools:
name: Validate build-tools
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2ebc26f

Please sign in to comment.