Skip to content

github mac workers doesn't support docker, try to build with qemu ins… #2

github mac workers doesn't support docker, try to build with qemu ins…

github mac workers doesn't support docker, try to build with qemu ins… #2

Workflow file for this run

name: Configure and Build in Docker
on:
push:
branches:
- dockertest
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
permissions:
contents: read
packages: write
attestations: write
id-token: write
name: Configure and Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.version }},latest