aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/docker.yaml
diff options
context:
space:
mode:
authorDaniel <daniel.hub@outlook.de>2022-05-09 22:09:31 +0200
committerGitHub <noreply@github.com>2022-05-09 21:09:31 +0100
commit301190e42746fc03eb4cbef9bd6d080c4b8e23fd (patch)
tree21214be814cfaab9a19f94d0b00cc9d074810d92 /.github/workflows/docker.yaml
parentImporter V3 (#395) (diff)
downloadatuin-301190e42746fc03eb4cbef9bd6d080c4b8e23fd.zip
Build ARM docker image in GitHub Actions using QEMU (#400)
This PR updates the GH Action docker workflow to crossbuild the docker image for ARM using QEMU. This theoratically works but takes about for a clean build 2.5 hours, which may or may not be tolerable for each commit on `main`. A action run where the dependencies are already cached needs about 15 minutes with this PR.
Diffstat (limited to '')
-rw-r--r--.github/workflows/docker.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml
index 8a616dba..8f1855af 100644
--- a/.github/workflows/docker.yaml
+++ b/.github/workflows/docker.yaml
@@ -19,6 +19,9 @@ jobs:
- name: Check Out Repo
uses: actions/checkout@v2
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v2
+
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
@@ -51,6 +54,7 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
+ platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max