From 579d79dd42505e289a29a9952101d6ddd99d9ff0 Mon Sep 17 00:00:00 2001 From: Nicolas Rey Date: Tue, 1 Oct 2024 21:04:43 -0300 Subject: [PATCH] ci: trigger the job only on Dockerfile changes --- .github/workflows/test-tools.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-tools.yml b/.github/workflows/test-tools.yml index 90d5b83..5a8c753 100644 --- a/.github/workflows/test-tools.yml +++ b/.github/workflows/test-tools.yml @@ -4,9 +4,13 @@ on: push: branches: - main + paths: + - Dockerfile pull_request: branches: - main + paths: + - Dockerfile jobs: build-and-test: @@ -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 \ No newline at end of file