Skip to content

Commit bbeb354

Browse files
authored
Update build-all.yml
1 parent a5ecb2f commit bbeb354

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

.github/workflows/build-all.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,43 @@
1-
name: build all
1+
name: Build all
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "main"
28

3-
on: [push]
49
jobs:
510
build:
611
runs-on: ubuntu-latest
712
env:
813
TZ: Europe/Berlin # timezone
914
strategy:
15+
fail-fast: false
1016
matrix:
1117
include: # hier müssen die Pfade angegeben werden
1218
- app-path: sps-backend
1319
- app-path: sps-frontend
20+
21+
1422
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 }}
1725
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
1927
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 }}
2230
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
2432
with:
25-
app-path: "${{ matrix.app-path }}"
33+
app-path: ${{ matrix.app-path }}
2634
- 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
2836
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) }}
3240
registry-password: ${{ secrets.GITHUB_TOKEN }}
33-
registry: ghcr.io
3441
registry-username: ${{ github.actor }}
42+
image-tags: |
43+
type=raw,value=dev

0 commit comments

Comments
 (0)