Skip to content

Commit

Permalink
Merge pull request #277 from skalenetwork/enhancement/SKALE-3047-tag-…
Browse files Browse the repository at this point in the history
…branches-versions

Enhancement/skale 3047 tag branches versions
  • Loading branch information
dmytrotkk authored Aug 11, 2020
2 parents 788df14 + 2aaa059 commit 653c66f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions datafiles/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ if [[ -z $CONTAINER_CONFIGS_DIR ]]; then
fi
echo "Checkouting to container configs branch $CONTAINER_CONFIGS_STREAM ..."
git checkout $CONTAINER_CONFIGS_STREAM
echo "Pulling recent changes from $CONTAINER_CONFIGS_STREAM ..."
git pull
is_branch="$(git show-ref --verify refs/heads/$CONTAINER_CONFIGS_STREAM >/dev/null 2>&1; echo $?)"
if [[ $is_branch -eq 0 ]] ; then
echo "Pulling recent changes from $CONTAINER_CONFIGS_STREAM ..."
git pull
fi
else
echo "Syncing container configs ..."
rsync -r $CONTAINER_CONFIGS_DIR/* $CONFIG_DIR
Expand Down
7 changes: 5 additions & 2 deletions datafiles/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ if [[ -z $CONTAINER_CONFIGS_DIR ]]; then
git fetch
echo "Checkouting to container configs branch $CONTAINER_CONFIGS_STREAM ..."
git checkout $CONTAINER_CONFIGS_STREAM
echo "Pulling changes ..."
git pull
is_branch="$(git show-ref --verify refs/heads/$CONTAINER_CONFIGS_STREAM >/dev/null 2>&1; echo $?)"
if [[ $is_branch -eq 0 ]] ; then
echo "Pulling changes ..."
git pull
fi
echo "Pulling new version of images ..."
SKALE_DIR=$SKALE_DIR docker-compose -f docker-compose.yml pull
else
Expand Down

0 comments on commit 653c66f

Please sign in to comment.