File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
content/manuals/build/ci/github-actions Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -129,13 +129,15 @@ env:
129129
130130jobs:
131131 build:
132- runs-on: ubuntu-latest
133132 strategy:
134133 fail-fast: false
135134 matrix:
136- platform:
137- - linux/amd64
138- - linux/arm64
135+ include:
136+ - platform: linux/amd64
137+ os: ubuntu-latest
138+ - platform: linux/arm64
139+ os: ubuntu-24.04-arm
140+ runs-on: ${{ matrix.os }}
139141 steps:
140142 - name: Prepare
141143 run: |
@@ -163,9 +165,6 @@ jobs:
163165 username: ${{ github.repository_owner }}
164166 password: ${{ secrets.GITHUB_TOKEN }}
165167
166- - name: Set up QEMU
167- uses: docker/setup-qemu-action@v3
168-
169168 - name: Set up Docker Buildx
170169 uses: docker/setup-buildx-action@v3
171170
@@ -284,8 +283,7 @@ target "image-all" {
284283 inherits = ["image"]
285284 platforms = [
286285 "linux/amd64",
287- "linux/arm/v6",
288- "linux/arm/v7",
286+ "linux/riscv64",
289287 "linux/arm64"
290288 ]
291289}
@@ -337,13 +335,13 @@ jobs:
337335 retention-days: 1
338336
339337 build:
340- runs-on: ubuntu-latest
341338 needs:
342339 - prepare
343340 strategy:
344341 fail-fast: false
345342 matrix:
346343 platform: ${{ fromJson(needs.prepare.outputs.matrix) }}
344+ runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
347345 steps:
348346 - name: Prepare
349347 run: |
@@ -355,14 +353,15 @@ jobs:
355353 with:
356354 name: bake-meta
357355 path: ${{ runner.temp }}
358-
356+
359357 - name: Login to Docker Hub
360358 uses: docker/login-action@v3
361359 with:
362360 username: ${{ vars.DOCKERHUB_USERNAME }}
363361 password: ${{ secrets.DOCKERHUB_TOKEN }}
364362
365363 - name: Set up QEMU
364+ if: ${{ matrix.platform == 'linux/riscv64' }}
366365 uses: docker/setup-qemu-action@v3
367366
368367 - name: Set up Docker Buildx
You can’t perform that action at this time.
0 commit comments