ci: add cross platform build for dev main image

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

#1819
This commit is contained in:
Jens Langhammer 2021-11-21 22:36:32 +01:00
parent 993dee6aad
commit 4cbeeb9a0c
2 changed files with 9 additions and 1 deletions

View File

@ -291,6 +291,13 @@ jobs:
- test-e2e - test-e2e
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 120 timeout-minutes: 120
strategy:
fail-fast: false
matrix:
arch:
- 'linux/amd64'
- 'linux/arm64'
- 'linux/arm/v7'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Docker Buildx - name: Set up Docker Buildx
@ -317,3 +324,4 @@ jobs:
ghcr.io/goauthentik/dev-server:gh-${{ steps.ev.outputs.branchNameContainer }}-${{ steps.ev.outputs.timestamp }}-${{ steps.ev.outputs.sha }} ghcr.io/goauthentik/dev-server:gh-${{ steps.ev.outputs.branchNameContainer }}-${{ steps.ev.outputs.timestamp }}-${{ steps.ev.outputs.sha }}
build-args: | build-args: |
GIT_BUILD_HASH=${{ steps.ev.outputs.sha }} GIT_BUILD_HASH=${{ steps.ev.outputs.sha }}
platforms: ${{ matrix.arch }}

View File

@ -72,4 +72,4 @@ jobs:
file: ${{ matrix.type }}.Dockerfile file: ${{ matrix.type }}.Dockerfile
build-args: | build-args: |
GIT_BUILD_HASH=${{ steps.ev.outputs.sha }} GIT_BUILD_HASH=${{ steps.ev.outputs.sha }}
platforms: ${{ matrix.terraform }} platforms: ${{ matrix.arch }}