simplify #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
permissions: | |
packages: write | |
jobs: | |
image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Pull manylinux images | |
run: | | |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login -u ${{ secrets.GITHUB_ACTOR }} --password-stdin ghcr.io | |
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 | |
docker manifest create ghcr.io/spack/manylinux2014:example \ | |
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:example |