-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.35 KB
/
build-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Test build
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
container-frontend:
name: Build frontend container
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- { docker: linux/amd64 }
- { docker: linux/arm64 }
- { docker: linux/arm64/v8 }
steps:
- uses: actions/checkout@v4
- name: Build container
uses: ./.github/actions/containers/build
with:
push: 'false'
context: src/frontend
docker-platform: ${{ matrix.platform.docker }}
container-backend:
name: Build backend container
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- { docker: linux/amd64, dotnet: amd64, dotnet-ef: linux-x64 }
- { docker: linux/arm64, dotnet: arm64, dotnet-ef: linux-arm64 }
- { docker: linux/arm64/v8, dotnet: arm64, dotnet-ef: linux-arm64 }
steps:
- uses: actions/checkout@v4
- name: Build container
uses: ./.github/actions/containers/build
with:
push: 'false'
context: src/backend/Bennetr.BrickInv.Api/
docker-platform: ${{ matrix.platform.docker }}
dotnet-platform: ${{ matrix.platform.dotnet }}
dotnet-ef-platform: ${{ matrix.platform.dotnet-ef }}