Add ARM build in GitHub Actions

- Hint: Tried to use the plattform parameter of the build-push-action,
   however this failed with an error in the Jobs.
   Therefore, I used a matrix with the platforms.
 - The ARM build takes a long time.
This commit is contained in:
Markus Opolka
2023-04-05 14:28:38 +02:00
parent 0732424f79
commit 663bf2f03b
5 changed files with 46 additions and 13 deletions

View File

@@ -12,12 +12,20 @@ jobs:
- apache
- fpm-alpine
- fpm
platform:
- linux/amd64
- linux/arm64
steps:
- name: 'Check out the repo'
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: 'Set up QEMU'
uses: docker/setup-qemu-action@v2
with:
platforms: 'arm64,arm'
- name: 'Set up Docker Buildx'
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: 'Build Container images'
uses: docker/build-push-action@v2
@@ -26,6 +34,7 @@ jobs:
push: false
load: true
tags: docker.io/martialblog/limesurvey:6-${{ matrix.context }}
platforms: ${{ matrix.platform }}
- name: 'Run Structure tests'
uses: plexsystems/container-structure-test-action@v0.2.0