Skip to content

vendor: switch to manylinux_2_28 (AlmaLinux 8) #69

vendor: switch to manylinux_2_28 (AlmaLinux 8)

vendor: switch to manylinux_2_28 (AlmaLinux 8) #69

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/manylinux_2_28_aarch64@sha256:91b598f88a2a5b14d4118423171b7ef0ba8d9e1d3d87e7f0f0ce7b9b9ea28e95"
- arch: x86_64
BASEIMAGE: "quay.io/pypa/manylinux_2_28_x86_64@sha256:7251f50cc3380767a79044762bc13a9089b4905c15c9600335c63eb90c0a8284"
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\//}"