Skip to content

Commit 1c4ab6f

Browse files
authored
Use upstream images directly, instead of rebasing (#1)
1 parent e9b6ed0 commit 1c4ab6f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+50
-15824
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 99 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Create multi-arch image
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
tags:
9+
- v*
10+
pull_request:
11+
branches:
12+
- main
13+
14+
permissions:
15+
packages: write
16+
17+
jobs:
18+
image:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Create multi-arch image
23+
run: |
24+
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
25+
26+
for arch in x86_64 aarch64 ppc64le; do
27+
docker pull quay.io/pypa/manylinux2014_$arch
28+
docker tag quay.io/pypa/manylinux2014_$arch ghcr.io/spack/manylinux2014:latest-$arch
29+
docker push ghcr.io/spack/manylinux2014:latest-$arch
30+
done
31+
32+
# use tag pr-<number>, latest, or v* tag for multi-arch image tag.
33+
if [ -n "$GITHUB_REF" ]; then
34+
if [ "$GITHUB_REF" = "refs/pull/${{ github.event.pull_request.number }}/merge" ]; then
35+
tag_name=pr-${{ github.event.pull_request.number }}
36+
elif [ "$GITHUB_REF" = "refs/heads/main" ]; then
37+
tag_name=latest
38+
else
39+
tag_name=${GITHUB_REF/refs\/tags\//}
40+
fi
41+
else
42+
tag_name=latest
43+
fi
44+
45+
docker manifest create ghcr.io/spack/manylinux2014:$tag_name \
46+
ghcr.io/spack/manylinux2014:latest-x86_64 \
47+
ghcr.io/spack/manylinux2014:latest-aarch64 \
48+
ghcr.io/spack/manylinux2014:latest-ppc64le
49+
50+
docker manifest push ghcr.io/spack/manylinux2014:$tag_name

.gitignore

Lines changed: 0 additions & 63 deletions
This file was deleted.

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)