-
Notifications
You must be signed in to change notification settings - Fork 1
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 #66 from piotr-iohk/make_release
Make release scripts
- Loading branch information
Showing
4 changed files
with
59 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
module Helpers | ||
module App | ||
def version | ||
'v2021-09-29' | ||
'v2021-09-29' #version | ||
end | ||
|
||
def is_connected?(w) | ||
|
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,26 @@ | ||
#! /usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
GIT_TAG="v2021-09-29" | ||
NODE_TAG="1.30.1" | ||
|
||
DOCKER_TAG=`echo "${GIT_TAG##v}" | sed -e s/-0/-/g -e s/-/./g` | ||
|
||
echo "Updating docker-compose.yml with WALLET:$DOCKER_TAG, NODE:$NODE_TAG" | ||
sed -i "s|inputoutput/cardano-wallet:.*|inputoutput/cardano-wallet:$DOCKER_TAG|" docker-compose.yml | ||
sed -i "s|inputoutput/cardano-node:.*|inputoutput/cardano-node:$NODE_TAG|" docker-compose.yml | ||
echo "" | ||
|
||
echo "Updating Ikar version to $GIT_TAG" | ||
sed -i "s|'.*' #version|'$GIT_TAG' #version|" ./helpers/app_helpers.rb | ||
sed -i "s|piotrstachyra/icarus:.*|piotrstachyra/icarus:$GIT_TAG|" docker-compose.yml | ||
echo "" | ||
|
||
read -p "Do you want to create a commit (y/n) " -n 1 -r | ||
echo | ||
if [[ $REPLY =~ ^[Yy]$ ]] | ||
then | ||
msg="Bump version to wallet/ikar: $GIT_TAG and node:$NODE_TAG" | ||
git diff --quiet || git commit -am "$msg" | ||
fi |