Skip to content

Commit

Permalink
ci: trigger the job only on Dockerfile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
reynico committed Oct 2, 2024
1 parent 52674ca commit 579d79d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/test-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ on:
push:
branches:
- main
paths:
- Dockerfile
pull_request:
branches:
- main
paths:
- Dockerfile

jobs:
build-and-test:
Expand All @@ -16,6 +20,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Build and test container
run: |
make test
- name: Build container
uses: docker/build-push-action@v6
with:
push: false
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
tags: theredguild/container-sec-tools:latest

0 comments on commit 579d79d

Please sign in to comment.