Skip to content

Commit d4af98c

Browse files
dockerfile name in yml
1 parent 7f40bc4 commit d4af98c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ppc64le.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,19 @@ jobs:
2929
run: |
3030
docker build -f .github/workflows/Dockerfile.ppc64le -t pytorch-ppc64le:ubi9.3 .
3131
32+
- name: Create Docker Volume
33+
run: docker volume create pytorch_workspace
34+
35+
- name: Copy Repository to Docker Volume
36+
run: |
37+
docker run --rm \
38+
-v pytorch_workspace:/workspace/pytorch \
39+
-v "${{ github.workspace }}:/repo" \
40+
ubuntu bash -c "cp -r /repo/* /workspace/pytorch/"
41+
3242
- name: Run Docker container and execute build script
3343
run: |
34-
docker run --rm -u $(id -u):$(id -g) -v /var/run/docker.sock:/var/run/docker.sock -v "${{ github.workspace }}:/workspace/pytorch" pytorch-ppc64le:ubi9.3 /ppc64le-build.sh
44+
docker run --rm -u $(id -u):$(id -g) -v "pytorch_workspace:/workspace/pytorch" pytorch-ppc64le:ubi9.3 /ppc64le-build.sh
3545
3646

3747

0 commit comments

Comments
 (0)