|
1 |
| -name: build all |
| 1 | +name: Build all |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - "main" |
2 | 8 |
|
3 |
| -on: [push] |
4 | 9 | jobs:
|
5 | 10 | build:
|
6 | 11 | runs-on: ubuntu-latest
|
7 | 12 | env:
|
8 | 13 | TZ: Europe/Berlin # timezone
|
9 | 14 | strategy:
|
| 15 | + fail-fast: false |
10 | 16 | matrix:
|
11 | 17 | include: # hier müssen die Pfade angegeben werden
|
12 | 18 | - app-path: sps-backend
|
13 | 19 | - app-path: sps-frontend
|
| 20 | + |
| 21 | + |
14 | 22 | steps:
|
15 |
| - - uses: actions/checkout@v4 |
16 |
| - - if: ${{hashFiles(format('./{0}/package.json', matrix.app-path))!=null}} |
| 23 | + - uses: it-at-m/lhm_actions/action-templates/actions/action-checkout@a7d25dbabec2057695f865169fdc411d475d4667 # v1.0.19 |
| 24 | + - if: ${{ hashFiles(format('./{0}/package.json', matrix.app-path))!=null }} |
17 | 25 | id: node
|
18 |
| - uses: it-at-m/.github/.github/actions/action-npm-build@main |
| 26 | + uses: it-at-m/lhm_actions/action-templates/actions/action-npm-build@fix-npm-release |
19 | 27 | with:
|
20 |
| - app-path: "${{ matrix.app-path }}" |
21 |
| - - if: ${{hashFiles(format('./{0}/pom.xml', matrix.app-path))!=null}} |
| 28 | + app-path: ${{ matrix.app-path }} |
| 29 | + - if: ${{ hashFiles(format('./{0}/pom.xml', matrix.app-path))!=null }} |
22 | 30 | id: maven
|
23 |
| - uses: it-at-m/.github/.github/actions/action-maven-build@main |
| 31 | + uses: it-at-m/lhm_actions/action-templates/actions/action-maven-build@a7d25dbabec2057695f865169fdc411d475d4667 # v1.0.19 |
24 | 32 | with:
|
25 |
| - app-path: "${{ matrix.app-path }}" |
| 33 | + app-path: ${{ matrix.app-path }} |
26 | 34 | - if: github.ref == 'refs/heads/main'
|
27 |
| - uses: it-at-m/.github/.github/actions/action-build-image@main |
| 35 | + uses: it-at-m/lhm_actions/action-templates/actions/action-build-image@a7d25dbabec2057695f865169fdc411d475d4667 # v1.0.19 |
28 | 36 | with:
|
29 |
| - path: "${{ matrix.app-path }}" |
30 |
| - image-name: "${{ matrix.app-path }}" |
31 |
| - artifact-name: ${{join(steps.*.outputs.artifact-name)}} |
| 37 | + path: ${{ matrix.app-path }} |
| 38 | + image-name: ${{ matrix.app-path }} |
| 39 | + artifact-name: ${{ join(steps.*.outputs.artifact-name) }} |
32 | 40 | registry-password: ${{ secrets.GITHUB_TOKEN }}
|
33 |
| - registry: ghcr.io |
34 | 41 | registry-username: ${{ github.actor }}
|
| 42 | + image-tags: | |
| 43 | + type=raw,value=dev |
0 commit comments