Skip to content

Commit 6bbba2e

Browse files
committed
fix: adding input for armv7 runner defaulting to self hosted
1 parent 079d1e7 commit 6bbba2e

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/build-multiarch.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ on:
7676
required: false
7777
default: 'arc-runner-set-arm64'
7878
type: string
79+
runner_armv7:
80+
description: 'Runner label for armv7 builds'
81+
required: false
82+
default: 'self-hosted'
83+
type: string
7984
outputs:
8085
digest_amd64:
8186
description: 'Image digest for amd64'
@@ -188,9 +193,8 @@ jobs:
188193
secret-envs: ${{ inputs.build_secret_envs }}
189194

190195
build-armv7:
191-
# Cross-compile on amd64 — much faster than QEMU emulation on a native armv7 runner
192196
if: contains(inputs.architectures, 'armv7')
193-
runs-on: ${{ inputs.runner_amd64 }}
197+
runs-on: ${{ inputs.runner_armv7 }}
194198
permissions:
195199
contents: read
196200
packages: write
@@ -208,7 +212,7 @@ jobs:
208212
echo "build_timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_OUTPUT
209213
210214
- name: Set up QEMU
211-
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4
215+
uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
212216

213217
- name: Set up Docker Buildx
214218
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Builds a Docker image natively on amd64 and arm64 runners, cross-compiles armv7
8686
| `push_latest` | no | `true` | Push a `:latest` tag alongside the version tag |
8787
| `runner_amd64` | no | `arc-runner-set-amd64` | Runner label for amd64 native builds |
8888
| `runner_arm64` | no | `arc-runner-set-arm64` | Runner label for arm64 native builds |
89+
| `runner_armv7` | no | `self-hosted` | Runner label for armv7 builds |
8990

9091
#### Outputs
9192

0 commit comments

Comments
 (0)