Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions opa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,10 @@ WORKDIR /opa
RUN <<EOF
# Unfortunately, we need to create a dummy Git repository to allow cyclonedx-gomod to determine the version of OPA
git init
git add go.mod
git config --global user.email "[email protected]"
git config --global user.name "dummy"
git commit -m "dummy"
git tag "${PRODUCT}"
git config user.email "[email protected]"
git config user.name "Fake commiter"
git commit --allow-empty --message "Fake commit, so that we can create a tag"
git tag "v${PRODUCT}"
go build -o opa -buildmode=exe
~/go/bin/cyclonedx-gomod app -json -output-version 1.5 -output "opa_${PRODUCT}.cdx.json" -packages -files
EOF
Expand Down
9 changes: 4 additions & 5 deletions statsd_exporter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ curl "https://repo.stackable.tech/repository/packages/statsd_exporter/statsd_exp

# Unfortunately, we need to create a dummy Git repository to allow cyclonedx-gomod to determine the version of statsd_exporter
git init
git add go.mod
git config --global user.email "[email protected]"
git config --global user.name "dummy"
git commit -m "dummy"
git tag "${PRODUCT}"
git config user.email "[email protected]"
git config user.name "Fake commiter"
git commit --allow-empty --message "Fake commit, so that we can create a tag"
git tag "v${PRODUCT}"
go build -o ../statsd_exporter
$GOPATH/bin/cyclonedx-gomod app -json -output-version 1.5 -output ../statsd_exporter-${PRODUCT}.cdx.json -packages -files
)
Expand Down