Skip to content

Commit 04b6c36

Browse files
committed
Using native runners vs qemu
1 parent 1a687e7 commit 04b6c36

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/ci-pipeline.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,26 @@ concurrency:
1818

1919
jobs:
2020
build:
21-
runs-on: ubuntu-latest
2221
strategy:
2322
fail-fast: false
2423
matrix:
25-
platform:
26-
- linux/amd64
27-
- linux/arm64
28-
24+
include:
25+
# AMD64 build on standard Ubuntu runners
26+
- platform: linux/amd64
27+
label: ubuntu-24.04 # or ubuntu-latest
28+
# ARM64 build on native Arm runner
29+
- platform: linux/arm64
30+
label: ubuntu-24.04-arm # native Arm runner label
31+
runs-on: ${{ matrix.label }}
32+
2933
steps:
30-
- name: Prepare
31-
run: |
32-
platform=${{ matrix.platform }}
33-
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
34-
3534
- name: Login to Docker Hub
3635
uses: docker/login-action@v3
3736
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
3837
with:
3938
username: ${{ vars.DOCKERHUB_USERNAME }}
4039
password: ${{ secrets.DOCKERHUB_TOKEN }}
4140

42-
- name: Set up QEMU
43-
uses: docker/setup-qemu-action@v3
44-
4541
- name: Set up Docker Buildx
4642
uses: docker/setup-buildx-action@v3
4743

@@ -86,7 +82,7 @@ jobs:
8682
- name: Upload digest
8783
uses: actions/upload-artifact@v4
8884
with:
89-
name: digests-${{ env.PLATFORM_PAIR }}
85+
name: digests-${{ replace(matrix.platform, '/', '-') }}
9086
path: ${{ runner.temp }}/digests/*
9187
if-no-files-found: error
9288
retention-days: 1

0 commit comments

Comments
 (0)