We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f98a85f commit 8322f6eCopy full SHA for 8322f6e
1 file changed
.github/workflows/ci.yml
@@ -198,9 +198,23 @@ jobs:
198
username: ${{ github.actor }}
199
password: ${{ secrets.GITHUB_TOKEN }}
200
201
- - name: Try to pull Docker test image
+ - name: Check for Docker file changes
202
+ uses: dorny/paths-filter@v3
203
+ id: docker-changes
204
+ with:
205
+ filters: |
206
+ docker:
207
+ - 'Dockerfile'
208
+ - 'docker-compose.yml'
209
+
210
+ - name: Pull or build Docker test image
211
run: |
- docker compose pull
212
+ if [ "${{ steps.docker-changes.outputs.docker }}" = "true" ]; then
213
+ echo "Dockerfile changed — building image locally"
214
+ docker compose build
215
+ else
216
+ docker compose pull
217
+ fi
218
219
- name: Make shellspec executable
220
run: chmod +x ./shellspec
0 commit comments