using composite

This commit is contained in:
Jörn Müehlencord
2026-03-31 21:27:14 +02:00
parent b8e25ad4a8
commit 579324c62b

View File

@@ -1,7 +1,6 @@
name: gitea pipeline build name: gitea pipeline build
run-name: ${{ gitea.actor }} started maven build on ${{ gitea.branch }}
on: inputs:
workflow_call: workflow_call:
inputs: inputs:
git_repository: git_repository:
@@ -47,14 +46,11 @@ on:
DTRACK_API_KEY: DTRACK_API_KEY:
required: true required: true
runs:
jobs:
build:
name: gitea pipleine build
using: 'composite' using: 'composite'
steps: steps:
- name: Clone repository - name: Clone repository
shell: bash
run: | run: |
git clone ${{ inputs.main_uuid }} source git clone ${{ inputs.main_uuid }} source
cd source cd source
@@ -74,17 +70,18 @@ jobs:
- name: Build with Maven - name: Build with Maven
working-directory: source working-directory: source
shell: bash
run: mvn -B clean verify sonar:sonar org.cyclonedx:cyclonedx-maven-plugin:makeAggregateBom -Dsonar.host.url="${{ inputs.sonar_host }}" -Dsonar.token="${{ secrets.SONAR_TOKEN }}" run: mvn -B clean verify sonar:sonar org.cyclonedx:cyclonedx-maven-plugin:makeAggregateBom -Dsonar.host.url="${{ inputs.sonar_host }}" -Dsonar.token="${{ secrets.SONAR_TOKEN }}"
- name: Upload SBOM to DTrack - name: Upload SBOM to DTrack
uses: DependencyTrack/gh-upload-sbom@v3 uses: DependencyTrack/gh-upload-sbom@v3
with: with:
serverHostname: ${{ dtrack_host_name }} serverhostname: ${{ dtrack_host_name }}
protocol: ${{ inputs.dtrack_protocol }} protocol: ${{ inputs.dtrack_protocol }}
port: ${{ inputs.dtrack_port }} port: ${{ inputs.dtrack_port }}
apiKey: ${{ secrets.DTRACK_API_KEY }} apikey: ${{ secrets.DTRACK_API_KEY }}
project: ${{ inputs.dtrack_project_uuid }} project: ${{ inputs.dtrack_project_uuid }}
bomFilename: ${{ inputs.dtrack_bom_file }} bomfilename: ${{ inputs.dtrack_bom_file }}