From 0ef3718b88cc47ba174f7c1c04725741d47bba9a Mon Sep 17 00:00:00 2001 From: Seth Simmons <40500387+sethsimmons@users.noreply.github.com> Date: Wed, 24 Mar 2021 10:41:38 -0400 Subject: [PATCH] Change to only build if Dockerfile is edited --- .github/workflows/update-image-on-push.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-image-on-push.yml b/.github/workflows/update-image-on-push.yml index 1ecd795..9ce1079 100644 --- a/.github/workflows/update-image-on-push.yml +++ b/.github/workflows/update-image-on-push.yml @@ -1,6 +1,9 @@ -name: "Update Image and Push to Github Packages and Docker Hub when commits are pushed to this repo" +name: "Update Image and Push to Github Packages and Docker Hub when Dockerfile is changed" # Run this workflow every time a new commit pushed to your repository -on: push +on: + push: + paths: + - 'Dockerfile' jobs: rebuild-container: name: "Rebuild Container"