Skip to content

vendor: use latest manylinux2014 baseimages #59

vendor: use latest manylinux2014 baseimages

vendor: use latest manylinux2014 baseimages #59

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:d21503dd99cdebfaf7297b0c0b0ea99e9a8950b8567b7baf076d1004725e673e"
- arch: i686
BASEIMAGE: "quay.io/pypa/manylinux2014_i686@sha256:bdce2b0761197eca2b7d11bc74b290bc04cbc1fabae655f18a87e6f437e248e7"
- arch: x86_64
BASEIMAGE: "quay.io/pypa/manylinux2014_x86_64@sha256:81215fea015c9ecedc6b3cb2dd3bc4d2293235572aa77eab81d3c3a541624785"
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\//}"