Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Build the different architectures in parallel

Roland Geider45c7c1d600fd
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index de6a28d12..e88cee14a 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -7,8 +7,11 @@ on:
jobs:
apache:
- name: Build apache image
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ arch: [ 'amd64', 'arm64' ]
+ name: Build apache image (linux/${{ matrix.arch }})
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -31,7 +34,7 @@ jobs:
context: .
push: true
file: extras/docker/demo/Dockerfile
- platforms: linux/amd64,linux/arm64
+ platforms: linux/${{ matrix.arch }}
tags: wger/demo:latest,wger/demo:2.2-dev,wger/apache:latest,wger/apache:2.2-dev
prod: