Skip to content

Maint/use central ci actions #6

Maint/use central ci actions

Maint/use central ci actions #6

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: # paths of different modules
- app-path: refarch-gateway
- app-path: refarch-tools/refarch-java-tools
build-image: false
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 != 'false'
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