forked from open-telemetry/opentelemetry-collector-releases
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update generation code (open-telemetry#486)
- Loading branch information
1 parent
d98178e
commit 323b90a
Showing
4 changed files
with
79 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
GO='' | ||
|
||
while getopts d:g: flag | ||
do | ||
case "${flag}" in | ||
d) distributions=${OPTARG};; | ||
g) GO=${OPTARG};; | ||
*) exit 1;; | ||
esac | ||
done | ||
|
||
[[ -n "$GO" ]] || GO='go' | ||
|
||
if [[ -z $distributions ]]; then | ||
echo "List of distributions to generate the goreleaser not provided. Use '-d' to specify the names of the distributions use. Ex.:" | ||
echo "$0 -d otelcol" | ||
exit 1 | ||
fi | ||
|
||
echo "Distributions to generate: $distributions"; | ||
|
||
for distribution in $(echo "$distributions" | tr "," "\n") | ||
do | ||
${GO} run cmd/goreleaser/main.go -d "${distribution}" > "./distributions/${distribution}/.goreleaser.yaml" | ||
done |