Skip to content

Commit c858c78

Browse files
committed
try build for linux/amd64,linux/arm64
1 parent 5227f77 commit c858c78

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/build-renku.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,19 @@ jobs:
193193
- name: List downloaded files
194194
run: ls -R rclone
195195

196-
- name: Extract rclone binary
196+
- name: Extract rclone binary - amd64
197197
run: |
198198
unzip "rclone/*-amd64.zip" -d rclone-unzip
199199
ls -R rclone-unzip
200-
mv rclone-unzip/*/rclone rclone
201-
ls .
200+
mkdir -p linux/amd64
201+
mv rclone-unzip/*/rclone linux/amd64/rclone
202+
203+
- name: Extract rclone binary - arm64
204+
run: |
205+
unzip "rclone/*-arm64.zip" -d rclone-unzip
206+
ls -R rclone-unzip
207+
mkdir -p linux/arm64
208+
mv rclone-unzip/*/rclone linux/arm64/rclone
202209
203210
- name: Docker image metadata
204211
id: meta
@@ -234,6 +241,7 @@ jobs:
234241
with:
235242
context: .
236243
file: .renku/Dockerfile
244+
platforms: linux/amd64,linux/arm64
237245
push: true
238246
tags: ${{ steps.meta.outputs.tags }}
239247
labels: ${{ steps.meta.outputs.labels }}

.renku/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
FROM scratch
2-
COPY rclone rclone
2+
COPY $TARGETPLATFORM/rclone rclone

0 commit comments

Comments
 (0)