Skip to content

Commit

Permalink
[WIFI-4648] Chg: create deploy release if there are changes in deploy…
Browse files Browse the repository at this point in the history
… release branch

Signed-off-by: Dmitry Dunaev <[email protected]>
  • Loading branch information
dunaev-dmitry committed Mar 30, 2022
1 parent 9b19ae3 commit c6afa01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/git-release-tool/git-release-tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ modify_deploy_repo_values() {
sed "s/$REPO_DOCKER_COMPOSE_NAME=.*/$REPO_DOCKER_COMPOSE_NAME=$SERVICE_TAG/" -i docker-compose/.env.selfsigned
sed "/${REPO_NAME_WITHOUT_SUFFIX#*/}@/s/ref=.*/ref=$SERVICE_TAG\"/g" -i chart/Chart.yaml
done
if [[ "$(git diff | wc -l)" -eq "0" ]]; then
log_info "No changes in microservices found, new release is not required"
LATEST_RELEASE_TAG=$(git tag | grep $CURRENT_RELEASE_VERSION | tail -1)
if [[ "$(git diff | wc -l)" -eq "0" ]] && [[ "$(git diff $LATEST_RELEASE_TAG)" -eq "0" ]]; then
log_info "No changes in microservices and since the latest tag are found, new release is not required"
else
sed 's/^version: .*/version: '${NEW_RELEASE_TAG#v}'/' chart/Chart.yaml -i
if [[ "$GIT_PUSH_CONFIRMED" == "true" ]]; then
Expand Down

0 comments on commit c6afa01

Please sign in to comment.