Skip to content

Commit 29f9c91

Browse files
authored
Create build-all.yml
1 parent 4474da0 commit 29f9c91

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/build-all.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Compliance check and build test
2+
3+
env:
4+
app-path: "/sps-backend" # example "/backend" for monorepos or "" for multi repos
5+
6+
7+
on: # defining on which triggers this action should run
8+
push:
9+
branches:
10+
# define on push of which branches should this action be run
11+
paths:
12+
- "sps-backend/**" # define the concrete paths on which a change triggers this action, e.g. backend/**
13+
- ".github/workflows/**" # define the concrete paths on which a change triggers this action, e.g. backend/**
14+
pull_request: # trigger this action also on Pull Requests
15+
types: [opened, reopened]
16+
17+
jobs:
18+
build-maven:
19+
runs-on: ubuntu-latest
20+
env:
21+
TZ: Europe/Berlin # timezone
22+
strategy:
23+
matrix:
24+
include:
25+
- app-path: sps-backend
26+
enable-node: false
27+
- app-path: sps-frontend
28+
enable-node: true
29+
steps:
30+
- uses: it-at-m/.github/.github/actions/action-maven-node-build@reuseable-workflow
31+
with:
32+
app-path: "${{ matrix.app-path }}"
33+
enable-node: ${{ matrix.app-path }}
34+
35+
build-image:
36+
runs-on: ubuntu-latest
37+
needs: build-maven
38+
if: github.ref == 'refs/heads/main'
39+
strategy:
40+
matrix:
41+
include:
42+
- app-path: sps-backend
43+
enable-node: false
44+
- app-path: sps-frontend
45+
enable-node: true
46+
steps:
47+
- uses: it-at-m/.github/.github/actions/action-build-image@reuseable-workflow
48+
with:
49+
app-path: "${{ matrix.app-path }}"
50+
registry-password: ${{ secrets.GITHUB_TOKEN }}
51+
registry: ghcr.io
52+
registry-username: ${{ github.actor }}

0 commit comments

Comments
 (0)