Skip to content

Commit

Permalink
Combine into step
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf committed Mar 7, 2024
1 parent 3e74678 commit 2397a5d
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,12 @@ jobs:
fetch-depth: 0
- name: Make repo safe
run: git config --global --add safe.directory /__w/SOARCA/SOARCA
- name: Make repo safe
run: git config --global --add safe.directory /__w/SOARCA/SOARCA

- name: Install swaggo
run: go install github.com/swaggo/swag/cmd/swag@latest

- name: Build swagger
run: swag init -o swaggerdocs

- name: Build sbom
- name: Build and sbom swagger
run: |
go install github.com/swaggo/swag/cmd/swag@latest
go install github.com/CycloneDX/cyclonedx-gomod/cmd/cyclonedx-gomod@latest
swag init -o swaggerdocs
mkdir -p sbom
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 cyclonedx-gomod app -json -licenses -output sbom/${BINARY_NAME}-${VERSION}-linux-amd64.bom.json
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 cyclonedx-gomod app -json -licenses -output sbom/${BINARY_NAME}-${VERSION}-darwin-amd64.bom.json
Expand Down

0 comments on commit 2397a5d

Please sign in to comment.