Skip to content

Commit

Permalink
Started using CIRCLE_TAG instead of VERSION file
Browse files Browse the repository at this point in the history
  • Loading branch information
migurski committed Aug 17, 2016
1 parent 60eccbf commit 9f62dfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
set -e

BUCKET="${1}"
VPATCH=`cut -d. -f1,2,3 VERSION`
VMINOR=`cut -d. -f1,2 VERSION`
VMAJOR=`cut -d. -f1 VERSION`
VPATCH=`echo ${CIRCLE_TAG#release-v} | cut -d. -f1,2,3 -`
VMINOR=`echo ${CIRCLE_TAG#release-v} | cut -d. -f1,2 -`
VMAJOR=`echo ${CIRCLE_TAG#release-v} | cut -d. -f1 -`

if aws s3 ls "s3://${BUCKET}/js/${VPATCH}/mapzen.min.js"; then
echo "s3://${BUCKET}/js/${VPATCH}/mapzen.min.js already exits, checking diffs..."
Expand Down

0 comments on commit 9f62dfc

Please sign in to comment.