Skip to content

Commit

Permalink
fix issue if release does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
qibobo committed Oct 12, 2019
1 parent 6185f09 commit 8571585
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions autoscaler/scripts/deploy-autoscaler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ if [[ $autoscalerExists == 1 ]];then
echo "the app-autoscaler deployed ${deployedCommitHash} and the current ${currentCommitHash} are the same"
exit 0
fi
else
release_version=$(git log --pretty=format:"%H" -1)
bosh create-release --force --version=${release_version}\
&& bosh -e vbox upload-release
fi

set -e

uaac target https://uaa.bosh-lite.com --skip-ssl-validation
Expand Down

0 comments on commit 8571585

Please sign in to comment.