Skip to content

vendor: use latest manylinux2014 baseimages #63

vendor: use latest manylinux2014 baseimages

vendor: use latest manylinux2014 baseimages #63

Workflow file for this run

name: Build and deploy
on:
push: {}
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
packages: write
strategy:
fail-fast: false
matrix:
include:
- arch: aarch64
BASEIMAGE: "quay.io/pypa/manylinux2014_aarch64@sha256:27b3fb624ca1f89c1a1b30e791cc74080fd53fa226aa954ce5e9f1fa0c1667e8"
- arch: i686
BASEIMAGE: "quay.io/pypa/manylinux2014_i686@sha256:e4fa0d3e7474e3c11b6f7e0dd992b1103062f7e697f8af5ad57874366b37d3b1"
- arch: x86_64
BASEIMAGE: "quay.io/pypa/manylinux2014_x86_64@sha256:965f072641f57c70a5ddc512b144000578dc31aeea7c76874d54311316f3e697"
steps:
- uses: actions/checkout@v4
- name: docker qemu multi-arch
if: matrix.arch != 'x86_64'
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset --persistent yes
- name: build image
run: |
docker build \
--tag "${GITHUB_REPOSITORY}-${{ matrix.arch }}:${GITHUB_SHA}" \
--build-arg "BASEIMAGE=${{ matrix.BASEIMAGE }}" \
.
- name: push image
if: startsWith(github.ref, 'refs/tags/')
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${GITHUB_ACTOR}" --password-stdin
docker tag \
"${GITHUB_REPOSITORY}-${{ matrix.arch }}:${GITHUB_SHA}" \
"ghcr.io/${GITHUB_REPOSITORY}-${{ matrix.arch }}:${GITHUB_REF/#refs\/tags\//}"
docker push "ghcr.io/${GITHUB_REPOSITORY}-${{ matrix.arch }}:${GITHUB_REF/#refs\/tags\//}"