File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
content/manuals/build/ci/github-actions Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -123,17 +123,23 @@ env:
123
123
124
124
jobs:
125
125
build:
126
- runs-on: ubuntu-latest
126
+ runs-on: ${{ matrix.config.runs-on }}
127
127
strategy:
128
128
fail-fast: false
129
129
matrix:
130
- platform:
131
- - linux/amd64
132
- - linux/arm64
130
+ config:
131
+ - platform: linux/arm64
132
+ runs-on: ubuntu-24.04-arm
133
+ - platform: linux/amd64
134
+ runs-on: ubuntu-24.04
133
135
steps:
136
+ - uses: actions/checkout@v4
137
+ with:
138
+ fetch-depth: 0 # important so tags/history are available
139
+
134
140
- name: Prepare
135
141
run: |
136
- platform=${{ matrix.platform }}
142
+ platform=${{ matrix.config. platform }}
137
143
echo "PLATFORM_PAIR=${platform//\/ /-}" >> $GITHUB_ENV
138
144
139
145
- name: Docker meta
@@ -158,10 +164,12 @@ jobs:
158
164
id: build
159
165
uses: docker/build-push-action@v6
160
166
with:
161
- platforms: ${{ matrix.platform }}
167
+ platforms: ${{ matrix.config. platform }}
162
168
labels: ${{ steps.meta.outputs.labels }}
163
169
tags: ${{ env.REGISTRY_IMAGE }}
164
170
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
171
+ cache-from: type=gha
172
+ cache-to: type=gha,mode=max
165
173
166
174
- name: Export digest
167
175
run: |
You can’t perform that action at this time.
0 commit comments