Skip to content

Commit 18257ac

Browse files
authored
Update build-image.yml
Since this job takes so long to run, only run it when `pyproject.toml` or `Dockerfile` is modified, which is its only real dependencies.
1 parent 0b01aee commit 18257ac

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-image.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ name: Create and publish a Docker image
33
# Configures this workflow to run every time a change is pushed to the branch called `main`.
44
on:
55
push:
6-
branches: ['main']
6+
paths:
7+
- "pyproject.toml"
8+
- "Dockerfile"
9+
pull_request:
10+
paths:
11+
- "pyproject.toml"
12+
- "Dockerfile"
713

814
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
915
env:

0 commit comments

Comments
 (0)