I am currently building a workflow that basically does two things in two seperate jobs:
Build a custom Docker image and push it to GPR
Pull the built Docker image from GPR and use it to compile my software
While this works fine, it seems a bit inefficient to rebuild the entire Docker image each time the workflow is triggered. Instead, it would be a lot cooler if it would only trigger on changes in the
docker/ path, where my
Dockerfile resides, for example.
The on.<push|pull_request>.paths syntax seems to support such behavior, but it applies to the entire workflow. Is there a way to conditionally execute my “build docker image” workflow step based on the same criteria?