Skip to content

feat/dbs-fk

feat/dbs-fk #31

name: Build all
on:
pull_request:
push:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
env:
TZ: Europe/Berlin # timezone
strategy:
fail-fast: false
matrix:
include: # hier müssen die Pfade angegeben werden
- app-path: routing-service
- app-path: zammad-fk
steps:
- uses: it-at-m/lhm_actions/action-templates/actions/action-checkout@a7d25dbabec2057695f865169fdc411d475d4667 # v1.0.19
- if: ${{ hashFiles(format('./{0}/package.json', matrix.app-path))!=null }}
id: node
uses: it-at-m/lhm_actions/action-templates/actions/action-npm-build@a7d25dbabec2057695f865169fdc411d475d4667 # v1.0.19
with:
app-path: ${{ matrix.app-path }}
- if: ${{ hashFiles(format('./{0}/pom.xml', matrix.app-path))!=null }}
id: maven
uses: it-at-m/lhm_actions/action-templates/actions/action-maven-build@a7d25dbabec2057695f865169fdc411d475d4667 # v1.0.19
with:
app-path: ${{ matrix.app-path }}
- #if: github.ref == 'refs/heads/main'
uses: it-at-m/lhm_actions/action-templates/actions/action-build-image@a7d25dbabec2057695f865169fdc411d475d4667 # v1.0.19
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