Skip to content

Commit 03a1ea6

Browse files
committed
Trying a matric build that also changes runs-on
1 parent 096239c commit 03a1ea6

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/publish_docker.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,21 @@ env:
2121
jobs:
2222
# This workflow contains a single job called "build"
2323
build:
24+
strategy:
25+
matrix:
26+
platform: [ linux/amd64, linux/arm64 ]
27+
include:
28+
- platform: linux/amd64
29+
runs_on: ubuntu-latest
30+
- platform: linux/arm64
31+
runs_on: ubuntu-24.04-arm
2432
# The type of runner that the job will run on
25-
runs-on: ubuntu-latest
33+
runs-on: ${{ matrix.runs_on }}
2634

2735
# Steps represent a sequence of tasks that will be executed as part of the job
2836
steps:
2937
- uses: actions/checkout@v3
30-
31-
- name: Setup QEMU
32-
uses: docker/setup-qemu-action@v3
33-
38+
3439
- name: Setup Docker Buildx
3540
uses: docker/setup-buildx-action@v3
3641

@@ -81,7 +86,7 @@ jobs:
8186
push: ${{ github.event_name != 'pull_request' }}
8287
tags: ${{ steps.meta.outputs.tags }}
8388
labels: ${{ steps.meta.outputs.labels }}
84-
platforms: linux/amd64,linux/arm64
89+
platforms: ${{ matrix.platform }}
8590

8691
- name: Build and push Systemd Docker images
8792
id: build-and-push-systemd
@@ -92,4 +97,4 @@ jobs:
9297
push: ${{ github.event_name != 'pull_request' }}
9398
tags: ${{ steps.metasysd.outputs.tags }}
9499
labels: ${{ steps.metasysd.outputs.labels }}
95-
platforms: linux/amd64,linux/arm64
100+
platforms: ${{ matrix.platform }}

0 commit comments

Comments
 (0)