Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/multi-arch-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,20 @@ jobs:
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin

# manylinux2014
for arch in x86_64 aarch64 ppc64le; do
docker pull quay.io/pypa/manylinux2014_$arch
docker tag quay.io/pypa/manylinux2014_$arch ghcr.io/spack/manylinux2014:latest-$arch
docker push ghcr.io/spack/manylinux2014:latest-$arch
done

# manylinux_2_39
for arch in riscv64; do
docker pull quay.io/pypa/manylinux_2_39_$arch
docker tag quay.io/pypa/manylinux_2_39_$arch ghcr.io/spack/manylinux_2_39:latest-$arch
docker push ghcr.io/spack/manylinux_2_39:latest-$arch
done

# use tag pr-<number>, latest, or v* tag for multi-arch image tag.
if [ -n "$GITHUB_REF" ]; then
if [ "$GITHUB_REF" = "refs/pull/${{ github.event.pull_request.number }}/merge" ]; then
Expand All @@ -42,9 +50,16 @@ jobs:
tag_name=latest
fi

# manylinux2014
docker manifest create ghcr.io/spack/manylinux2014:$tag_name \
ghcr.io/spack/manylinux2014:latest-x86_64 \
ghcr.io/spack/manylinux2014:latest-aarch64 \
ghcr.io/spack/manylinux2014:latest-ppc64le

docker manifest push ghcr.io/spack/manylinux2014:$tag_name
docker manifest push ghcr.io/spack/manylinux2014:$tag_name

# manylinux_2_39
docker manifest create ghcr.io/spack/manylinux_2_39:$tag_name \
ghcr.io/spack/manylinux_2_39:latest-riscv64

docker manifest push ghcr.io/spack/manylinux_2_39:$tag_name
Loading