Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
chore(publish): publish cli with docker beta version
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Feb 6, 2018
1 parent afee255 commit b59d5de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions cli/packages/prisma-yml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@ Your feedback is **very helpful**, please share your opinion and thoughts!
* [Report a bug](https://github.com/graphcool/prisma/issues/new)
* [Participate in existing discussions](https://github.com/graphcool/prisma/issues)


10 changes: 9 additions & 1 deletion cli/scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@ fi
latestVersion=$(npm info prisma version)
tag=${CIRCLE_TAG:-$latestVersion}
tagElements=(${tag//./ })
nextDockerTag="${tagElements[0]}.${tagElements[1]}"
nextDockerMinor=${tagElements[1]}
if [[ $CIRCLE_TAG ]]; then
nextDockerTag="${tagElements[0]}.${nextDockerMinor}"
else
#TODO: add when backend releases are ready
#step=1
#nextDockerMinor=$((nextDockerMinor + step))
nextDockerTag="${tagElements[0]}.${nextDockerMinor}-beta"
fi

node cli/scripts/waitUntilTagPublished.js $nextDockerTag

Expand Down

0 comments on commit b59d5de

Please sign in to comment.