Skip to content

Fix docker build

Fix docker build #3

Workflow file for this run

name: Create and publish manylinux Docker image
on:
push:
tags:
- '*'
branches:
- develop
- ci/*
pull_request:
types:
- opened
- synchronize
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- name: Prepare
run: |
if [ "${{ matrix.platform }}" = "linux/amd64" ]; then
echo "TARGET_ARCH=x86_64" >> $GITHUB_ENV
elif [ "${{ matrix.platform }}" = "linux/arm64" ]; then
echo "TARGET_ARCH=aarch64" >> $GITHUB_ENV
fi
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
id: docker_build
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
push: false
platforms: ${{ matrix.platform }}
tags: ghcr.io/${{ github.repository }}-manylinux_2_28_${{ env.TARGET_ARCH }}:latest
build-args: |
TARGET_ARCH=${{ env.TARGET_ARCH }}