Skip to content

Commit e2741d2

Browse files
dockerfile name in yml
1 parent a656cb3 commit e2741d2

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/ppc64le.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,31 @@ jobs:
1919
steps:
2020
- name: Checkout repository
2121
uses: actions/checkout@v3
22+
with:
23+
submodules: true
2224
- name: Set up Docker Buildx
2325
uses: docker/setup-buildx-action@v2
24-
- name: Remove old untagged images (optional cleanup)
25-
run: |
26-
docker image prune -a -f
26+
2727
- name: Build Docker image for ppc64le
2828
run: |
2929
docker build -f .github/workflows/Dockerfile.ppc64le -t pytorch-ppc64le:ubi9.3 .
30+
31+
- name: Debug .git directory inside container
32+
run: |
33+
docker run --rm -v "$(pwd):/workspace/pytorch" pytorch-ppc64le:ubi9.3 bash -c "ls -la /workspace/pytorch/.git || echo '.git directory not found'"
34+
3035

3136
- name: Run Docker container and execute build script
3237

3338
run: |
34-
docker run --rm -v "$(pwd):/workspace/pytorch" pytorch-ppc64le:ubi9.3 bash -c \
35-
"git config --global --add safe.directory /workspace/pytorch && \
36-
git submodule update --init --recursive && \
39+
docker run --rm -v "$(pwd):/workspace/pytorch" pytorch-ppc64le:ubi9.3 bash -c
40+
if [ -d /workspace/pytorch/.git ]; then
41+
git config --global --add safe.directory /workspace/pytorch &&
42+
git submodule update --init --recursive
43+
else
44+
echo 'Error: /workspace/pytorch is not a valid Git repository'
45+
exit 1
46+
fi
3747
/ppc64le-build.sh"
3848
3949
- name: Archive ppc64le artifacts into zip

0 commit comments

Comments
 (0)