Skip to content

Saleor Core: the high performance, composable, headless commerce API.

gha: build images natively on ARM64 (#18112)

Mikaild5ff468f84bd
diff --git a/.github/workflows/publish-containers.yml b/.github/workflows/publish-containers.yml
index 0fac539c1a..7c31dc404b 100644
--- a/.github/workflows/publish-containers.yml
+++ b/.github/workflows/publish-containers.yml
@@ -25,25 +25,20 @@ on:
jobs:
build-and-push:
- runs-on: ubuntu-24.04
-
- permissions:
- contents: read
- packages: write
-
strategy:
fail-fast: false
matrix:
platform:
- - linux/amd64
- - linux/arm64
+ - ubuntu-24.04 # AMD64
+ - ubuntu-24.04-arm # ARM64
- steps:
- - name: Prepare
- run: |
- platform=${{ matrix.platform }}
- echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
+ runs-on: ${{ matrix.platform }}
+ permissions:
+ contents: read
+ packages: write
+
+ steps:
- name: Build Image Name
id: image
env:
@@ -65,9 +60,6 @@ jobs:
images: |
ghcr.io/${{ steps.image.outputs.image_name }}
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
-
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -91,7 +83,6 @@ jobs:
# the container repository name instead (ghcr.io/saleor/saleor)
# (we cannot push both by tags and by digest, only one or the other)
tags: ghcr.io/${{ steps.image.outputs.image_name }}
- platforms: ${{ matrix.platform }}
push: true
- name: Export digest
@@ -103,7 +94,7 @@ jobs:
- name: Upload digest
uses: actions/upload-artifact@v4
with:
- name: digests-${{ env.PLATFORM_PAIR }}
+ name: digests-${{ matrix.platform }}
path: ${{ runner.temp }}/digests/*
if-no-files-found: error
retention-days: 1