Skip to content

Commit bf5a5b0

Browse files
authored
Change conditions when to build Docker container (#328)
Run Docker build if the Dockerfile or any file related to it is changed. Do not automatically run if notebooks' content is updated, since that update can be easily pulled via git.
1 parent 831dde3 commit bf5a5b0

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/docker-build.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,24 @@ on:
55
push:
66
branches:
77
- main
8-
paths-ignore:
9-
- "*.md"
10-
- slides/**
11-
- images/**
12-
- .gitignore
8+
paths:
9+
- "Dockerfile"
10+
- "docker/**"
11+
- "binder/**"
12+
- "**/environment.yml"
13+
- "tutorial/tests/testsuite/**"
14+
- ".github/workflows/docker-build.yml"
1315
tags:
1416
- "v*.*"
1517
- "v*.*.*"
1618
pull_request:
17-
paths-ignore:
18-
- "*.md"
19-
- slides/**
20-
- images/**
21-
- .gitignore
19+
paths:
20+
- "Dockerfile"
21+
- "docker/**"
22+
- "binder/**"
23+
- "**/environment.yml"
24+
- "tutorial/tests/testsuite/**"
25+
- ".github/workflows/docker-build.yml"
2226
workflow_dispatch:
2327

2428
jobs:

0 commit comments

Comments
 (0)