Skip to content

Commit 1d69283

Browse files
committed
check again.
1 parent 152e7e8 commit 1d69283

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Test Docker image builds
2+
3+
on:
4+
pull_request:
5+
paths:
6+
# Run only when DockerFile files are modified
7+
- "docker/**"
8+
9+
concurrency:
10+
group: docker-image-builds
11+
cancel-in-progress: false
12+
13+
jobs:
14+
name: "Build all modified docker images"
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v1
19+
- name: Check out code
20+
uses: actions/checkout@v3
21+
- name: Get changed files
22+
id: changed-files
23+
uses: tj-actions/changed-files@3f54ebb830831fc121d3263c1857cfbdc310cdb9 #v42
24+
with:
25+
files: docker/**
26+
- name: Run step if only the files listed above change
27+
if: steps.changed-files.outputs.only_changed == 'true'
28+
env:
29+
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files}}
30+
run: |
31+
for file in ${CHANGED_FILES}; do
32+
echo "$file was changed"
33+
done
34+
- name: Build Docker images
35+
strategy:
36+
matrix:
37+
docker-file: ${{ steps.changed-files.outputs.all_changed_files}}
38+
uses: docker/build-push-action@v4
39+
with:
40+
context: ${{ matrix.docker-file }}
41+
push: False

docker/diffusers-pytorch-cpu/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ RUN python3 -m pip install --no-cache-dir --upgrade pip uv==0.1.11 && \
4141
scipy \
4242
tensorboard \
4343
transformers \
44-
pandas matplotlib scikit-learn
44+
pandas matplotlib scikit-learn trl
4545

4646
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)