Skip to content

use platform for linux/arm64 image #142

use platform for linux/arm64 image

use platform for linux/arm64 image #142

Workflow file for this run

name: C/C++ CI docker
on: [push]
jobs:
build:
strategy:
matrix:
include:
- image: ubuntu:24.04
label: arm64
platform: linux/arm64
- image: balenalib/raspberry-pi
label: armv6l
platform: linux/arm/v6
- image: balenalib/raspberry-pi2
label: armv7
platform: linux/arm/v7
- image: ubuntu:24.04
label: amd64
platform: linux/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build an image from Dockerfile
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker build -t docker.io/${{ github.repository }}:${{ matrix.label }} --platform ${{ matrix.platform }} --build-arg IMAGE=${{ matrix.image }} .