Skip to content

actor

actor #15

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 ghcr.io -u ${{ github.actor }} --password-stdin
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