-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): migrate release pipeline (#3070)
migrate release pipeline from Github Action to Buildkite.
- Loading branch information
1 parent
5a5bd55
commit 47160d8
Showing
3 changed files
with
41 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
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,24 @@ | ||
#!/bin/bash | ||
|
||
# Exits as soon as any line fails. | ||
set -euo pipefail | ||
|
||
echo "--- Install gh cli" | ||
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | \ | ||
dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg | ||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | \ | ||
tee /etc/apt/sources.list.d/github-cli.list > /dev/null | ||
apt update -yy && apt install gh -yy | ||
|
||
echo "--- Release create" | ||
gh release create "${BUILDKITE_TAG}" --generate-notes -d -p | ||
|
||
echo "--- Download artifacts" | ||
mkdir -p target/debug && cd target/debug | ||
buildkite-agent artifact download risingwave-release . | ||
mv risingwave-release risingwave | ||
chmod +x risingwave | ||
tar -czvf risingwave-"${BUILDKITE_TAG}"-x86_64-unknown-linux.tar.gz risingwave | ||
|
||
echo "--- Release upload asset" | ||
gh release upload "${BUILDKITE_TAG}" risingwave-"${BUILDKITE_TAG}"-x86_64-unknown-linux.tar.gz |
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