generated from it-at-m/oss-repository-en-template
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1.49 KB
/
maven-node-build.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
name: build all
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
env:
TZ: Europe/Berlin
strategy:
fail-fast: false
matrix:
include:
- app-path: matching-service
build-image: true
- app-path: dispatch-service
build-image: true
- app-path: handler-core
build-image: false
- app-path: dms-service
build-image: true
- app-path: invoice-service
build-image: true
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- if: ${{ hashFiles(format('./{0}/package.json', matrix.app-path)) != null }}
id: node
uses: it-at-m/.github/.github/actions/action-npm-build@main
with:
app-path: "${{ matrix.app-path }}"
- if: ${{ hashFiles(format('./{0}/pom.xml', matrix.app-path)) != null }}
id: maven
uses: it-at-m/.github/.github/actions/action-maven-build@main
with:
app-path: "${{ matrix.app-path }}"
- if: github.ref == 'refs/heads/main' && matrix.build-image
uses: it-at-m/.github/.github/actions/action-build-image@main
with:
path: "${{ matrix.app-path }}"
image-name: "${{ matrix.app-path }}"
artifact-name: ${{ join(steps.*.outputs.artifact-name) }}
registry-password: ${{ secrets.GITHUB_TOKEN }}
registry-username: ${{ github.actor }}
image-tags: |
type=raw,value=dev