File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -86,11 +86,10 @@ WORKDIR /opa
86
86
RUN <<EOF
87
87
# Unfortunately, we need to create a dummy Git repository to allow cyclonedx-gomod to determine the version of OPA
88
88
git init
89
- git add go.mod
90
- git config --global user.email "dummy@stackable.tech"
91
- git config --global user.name "dummy"
92
- git commit -m "dummy"
93
- git tag "${PRODUCT}"
89
+ git config user.email "fake.commiter@stackable.tech"
90
+ git config user.name "Fake commiter"
91
+ git commit --allow-empty --message "Fake commit, so that we can create a tag"
92
+ git tag "v${PRODUCT}"
94
93
go build -o opa -buildmode=exe
95
94
~/go/bin/cyclonedx-gomod app -json -output-version 1.5 -output "opa_${PRODUCT}.cdx.json" -packages -files
96
95
EOF
Original file line number Diff line number Diff line change @@ -32,11 +32,10 @@ curl "https://repo.stackable.tech/repository/packages/statsd_exporter/statsd_exp
32
32
33
33
# Unfortunately, we need to create a dummy Git repository to allow cyclonedx-gomod to determine the version of statsd_exporter
34
34
git init
35
- git add go.mod
36
- git config --global user.email "dummy@stackable.tech"
37
- git config --global user.name "dummy"
38
- git commit -m "dummy"
39
- git tag "${PRODUCT}"
35
+ git config user.email "fake.commiter@stackable.tech"
36
+ git config user.name "Fake commiter"
37
+ git commit --allow-empty --message "Fake commit, so that we can create a tag"
38
+ git tag "v${PRODUCT}"
40
39
go build -o ../statsd_exporter
41
40
$GOPATH/bin/cyclonedx-gomod app -json -output-version 1.5 -output ../statsd_exporter-${PRODUCT}.cdx.json -packages -files
42
41
)
You can’t perform that action at this time.
0 commit comments