Browse Source
Dev workflow: add building for ARM platforms (#1096 )
* ci: add arm64 platform to build action for dev workflow
* ci: add step for multi-platform build
* ci: add new step for release
* feat: specify build platform on backend
pull/1098/head
Keir
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
19 additions and
2 deletions
.github/workflows/dev.yml
.github/workflows/release.yml
Dockerfile
@ -135,6 +135,15 @@ jobs:
run : |
echo "BUILD_NUMBER=$(($BUILD_NUMBER + 6000))" >> $GITHUB_ENV
- name : Publish - Build for Multi-Platforms
uses : docker/build-push-action@v5.3.0
with:
build-args : "SQUIDEX__RUNTIME__VERSION=7.0.0-dev-${{ env.BUILD_NUMBER }}"
cache-from : type=gha
cache-to : type=gha,mode=max
platforms : linux/amd64,linux/arm64
tags : squidex-local
- name : Publish - Login to Docker Hub
if : github.event_name != 'pull_request'
uses : docker/login-action@v3.1.0
@ -34,7 +34,6 @@ jobs:
build-args : "SQUIDEX__BUILD__VERSION=${{ env.GITHUB_REF_SLUG }},SQUIDEX__RUNTIME__VERSION=${{ env.GITHUB_REF_SLUG }}"
cache-from : type=gha
cache-to : type=gha,mode=max
platforms : linux/amd64,linux/arm64
tags : squidex-local
- name : Test - Start Compose
@ -117,6 +116,15 @@ jobs:
run : docker-compose down
working-directory : tools/TestSuite
- name : Publish - Build for Multi-Platforms
uses : docker/build-push-action@v5.3.0
with:
build-args : "SQUIDEX__BUILD__VERSION=${{ env.GITHUB_REF_SLUG }},SQUIDEX__RUNTIME__VERSION=${{ env.GITHUB_REF_SLUG }}"
cache-from : type=gha
cache-to : type=gha,mode=max
platforms : linux/amd64,linux/arm64
tags : squidex-local
- name : Publish - Get Major Version
id : version
uses : rishabhgupta/split-by@v1.0.1
@ -2,7 +2,7 @@
# Stage 1, Build Backend
#
FROM mcr.microsoft.com/dotnet/sdk:8.0 as backend
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 as backend
ARG SQUIDEX__BUILD__VERSION = 7 .0.0