generated from WillAbides/goproject-tmpl
-
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.
- Loading branch information
1 parent
174433b
commit 0065a6a
Showing
6 changed files
with
160 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
templates: | ||
eventbridge-pipe: | ||
url: https://github.com/WillAbides/piper/releases/download/v{{.version}}/eventbridge-pipe_{{.version}}_{{.os}}_{{.arch}}.tar.gz | ||
required_vars: | ||
- version | ||
systems: | ||
- darwin/amd64 | ||
- linux/amd64 | ||
eventgrid-pipe: | ||
url: https://github.com/WillAbides/piper/releases/download/v{{.version}}/eventgrid-pipe_{{.version}}_{{.os}}_{{.arch}}.tar.gz | ||
required_vars: | ||
- version | ||
systems: | ||
- darwin/amd64 | ||
- linux/amd64 | ||
splunk-pipe: | ||
url: https://github.com/WillAbides/piper/releases/download/v{{.version}}/splunk-pipe_{{.version}}_{{.os}}_{{.arch}}.tar.gz | ||
required_vars: | ||
- version | ||
systems: | ||
- darwin/amd64 | ||
- linux/amd64 |
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,8 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
CDPATH="" cd -- "$(dirname -- "$(dirname -- "$0")")" | ||
|
||
script/bindown install octo > /dev/null | ||
exec bin/octo "$@" |
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,41 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
CDPATH="" cd -- "$(dirname -- "$(dirname -- "$0")")" | ||
|
||
version="$1" | ||
|
||
if [ -z "$version" ]; then | ||
echo version is required >&2 | ||
exit 1 | ||
fi | ||
|
||
if [[ $version == v* ]]; then | ||
echo version cannot start with v >&2 | ||
exit 1 | ||
fi | ||
|
||
tag="v$version" | ||
|
||
mkdir -p ./tmp | ||
script/yq w ./bindown-templates.yml 'templates.*.vars.version' "$version" >./tmp/bindown-templates.yml | ||
|
||
release_id="$( | ||
script/octo repos create-release \ | ||
--repo willabides/piper \ | ||
--tag_name "$tag" \ | ||
--name "$tag" \ | ||
--target_commitish "$(git rev-parse HEAD)" \ | ||
--format '{{.id | toJson}}' | ||
)" | ||
|
||
script/octo repos upload-release-asset \ | ||
--repo WillAbides/piper \ | ||
--release_id "$release_id" \ | ||
--file tmp/bindown-templates.yml \ | ||
--name bindown-templates.yml >/dev/null | ||
|
||
git fetch origin "$tag" | ||
|
||
script/goreleaser release --rm-dist |
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,8 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
CDPATH="" cd -- "$(dirname -- "$(dirname -- "$0")")" | ||
|
||
script/bindown install yq > /dev/null | ||
exec bin/yq "$@" |