Skip to content

Commit 5003722

Browse files
dockerfile
1 parent f98ccc0 commit 5003722

File tree

2 files changed

+8
-23
lines changed

2 files changed

+8
-23
lines changed

.github/scripts/ppc64le/self-hosted-builder/fs/usr/bin/actions-runner

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ set -e -u
44

55
trap cleanup EXIT
66

7+
# first import docker image
8+
if [ -f ./manywheel-ppc64le.tar ] ; then
9+
docker image load --input manywheel-ppc64le.tar
10+
docker image tag docker.io/pytorch/manylinuxppc64le-builder:cpu-ppc64le docker.io/pytorch/manylinuxsppc64le-builder:cpu-ppc64le-main
11+
rm -f manywheel-ppc64le.tar
12+
fi
13+
714
token_file=registration-token.json
815

916
# Function to clean up and unregister the runner

.github/workflows/ppc64le.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,12 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16-
linux-ppc64le-docker-image-build:
17-
name: Build docker image for ppc64le
18-
runs-on: linux.ppc64le
19-
20-
steps:
21-
- name: Checkout repository
22-
uses: actions/checkout@v3
23-
24-
- name: Set up Docker Buildx
25-
uses: docker/setup-buildx-action@v2
26-
27-
- name: Remove old untagged images (optional cleanup)
28-
run: |
29-
docker image prune -a -f
30-
- name: Build Docker image for ppc64le
31-
run: |
32-
docker build -f .github/workflows/Dockerfile.ppc64le -t pytorch-ppc64le:ubi9.3 .
33-
34-
35-
36-
3716
linux-ubi-9-3-cpu-ppc64le-build:
3817

3918
name: linux-ubi9-3-cpu-ppc64le
4019
uses: ./.github/workflows/_linux-build.yml
41-
needs: linux-ppc64le-docker-image-build
4220
with:
4321
build-environment: linux-ppc64le-binary-manywheel
44-
docker-image-name: pytorch-ppc64le:ubi9.3
22+
docker-image-name: pytorch/manylinuxsppc64le-builder:cpu-ppc64le-main
4523
runner: linux.ppc64le # Example runner
4624

0 commit comments

Comments
 (0)