forked from elastic/rally
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease-checks.sh
More file actions
executable file
·27 lines (23 loc) · 907 Bytes
/
release-checks.sh
File metadata and controls
executable file
·27 lines (23 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
# fail this script immediately if any command fails with a non-zero exit code
set -eu
# test number of parameters
if [[ $# != 2 ]]
then
echo "Usage: make release release_version=RELEASE_VERSION next_version=NEXT_VERSION"
exit 1
fi
if ! git config user.signingkey >/dev/null
then
echo "Error: the variable user.signingkey is not configured for git on this system."
echo "The release process requires a valid gpg key configured both locally and on GitHub."
echo "Please follow the instructions in https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work"
echo "to set your gpg for git."
exit 1
fi
if [[ ! -f ~/.github/rally_release_changelog.token ]]
then
echo "Error: didn't find a valid GitHub token in ~/.github/rally_release_changelog.token."
echo "The release process requires a valid GitHub token. See RELEASE.md for details."
exit 1
fi