Skip to content

Commit 9741e79

Browse files
committed
Build multi-arch Docker image (add arm64 via QEMU)
1 parent 9d676de commit 9741e79

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎.github/workflows/docker-publish.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: 🐳 Build and publish Docker image
22

33
# Publishes ghcr.io/neurogenomics/microglia-sorting:latest on every push to main.
4-
# Can also be triggered by hand from the Actions tab.
4+
# The image is multi-arch (linux/amd64 + linux/arm64); the arm64 leg is built
5+
# under QEMU emulation. Can also be triggered by hand from the Actions tab.
56
on:
67
push:
78
branches:
@@ -15,13 +16,17 @@ env:
1516
jobs:
1617
build-and-push:
1718
runs-on: ubuntu-latest
19+
timeout-minutes: 360 # arm64 under QEMU is slow; allow the max
1820
permissions:
1921
contents: read
2022
packages: write
2123
steps:
2224
- name: Check out repository
2325
uses: actions/checkout@v4
2426

27+
- name: Set up QEMU
28+
uses: docker/setup-qemu-action@v4
29+
2530
- name: Set up Docker Buildx
2631
uses: docker/setup-buildx-action@v4
2732

@@ -37,4 +42,5 @@ jobs:
3742
with:
3843
context: .
3944
push: true
45+
platforms: linux/amd64,linux/arm64
4046
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

0 commit comments

Comments
 (0)