fix new ci, 1
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2025-02-04 15:05:53 +01:00
parent c40805b4cb
commit b99b47ca40
Signed by: wn
GPG Key ID: 18FDFA577A8871AD

View File

@ -3,6 +3,7 @@ steps:
image: golang:1.22.5-alpine3.20 image: golang:1.22.5-alpine3.20
commands: commands:
- cd src/udi - cd src/udi
- go mod tidy
- go build -a -installsuffix nocgo -o udi main.go - go build -a -installsuffix nocgo -o udi main.go
- cp udi ../.. - cp udi ../..
@ -25,7 +26,7 @@ steps:
--token $TRIVY_TOKEN \ --token $TRIVY_TOKEN \
--format cyclonedx \ --format cyclonedx \
--scanners license \ --scanners license \
--output sbom.xml \ --output /tmp/sbom.xml \
. .
- cat /tmp/sbom.xml - cat /tmp/sbom.xml
- | - |
@ -35,7 +36,7 @@ steps:
-F "autoCreate=true" \ -F "autoCreate=true" \
-F "projectName=$CI_REPO" \ -F "projectName=$CI_REPO" \
-F "projectVersion=$CI_COMMIT_SHA" \ -F "projectVersion=$CI_COMMIT_SHA" \
-F "bom=@sbom.xml"\ -F "bom=@/tmp/sbom.xml"\
"$DTRACK_API_URL/api/v1/bom" "$DTRACK_API_URL/api/v1/bom"
when: when:
- event: [push, tag] - event: [push, tag]