-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #214 from valory-xyz/feature/imrpoved_deployment_w…
…ith_ci improved CI deployment
- Loading branch information
Showing
3 changed files
with
163 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# DEPLOYMENT PROCESS | ||
|
||
use make release command: | ||
it creates tag, pushes to github and makes release that triggers deployment process | ||
release environment determined by suffix format `(<env_name>)` like `release v0.11 (prod)` | ||
|
||
list of environments supported is at release.yaml file | ||
|
||
to use gommand you have to install gh command locally, and login with it | ||
|
||
`./make_release.sh <VERSION> <ENV_NAME> [OPTIONAL DESCRIPTION]` | ||
|
||
example: | ||
`./make_release.sh 0.11 prod 'some description'` | ||
|
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,29 @@ | ||
#!/bin/bash | ||
|
||
export VERSION=$1 | ||
export ENV=$2 | ||
export DESCRIPTION=$3 | ||
|
||
if [ -z $VERSION ]; then | ||
echo no version | ||
exit 1 | ||
fi | ||
|
||
if [ -z $ENV ]; then | ||
echo no env | ||
exit 1 | ||
fi | ||
|
||
export TAG_NAME=release_${VERSION}_${ENV} | ||
|
||
echo make tag $TAG_NAME ... | ||
git tag $TAG_NAME | ||
echo push tag $TAG_NAME ... | ||
git push origin $TAG_NAME | ||
echo create release $TAG_NAME ... | ||
|
||
if gh release create $TAG_NAME --title "Release $VERSION ($ENV)" --notes "$DESCRIPTION"; then | ||
echo done | ||
else | ||
echo Error! | ||
fi |