Commit 513fcdee by bergquist

tech(build): prepare for tag builds

parent f602752b
...@@ -24,11 +24,11 @@ fi ...@@ -24,11 +24,11 @@ fi
echo "current dir: $(pwd)" echo "current dir: $(pwd)"
if [ "$CIRCLE_TAG" != "" ]; then if [ "$CIRCLE_TAG" != "" ]; then
echo "Building incremental build for master" echo "Building a release from tag $CIRCLE_TAG"
go run build.go build
else
echo "Building a release"
go run build.go -includeBuildNumber=false build go run build.go -includeBuildNumber=false build
else
echo "Building incremental build for $CIRCLE_BRANCH"
go run build.go build
fi fi
yarn install --pure-lockfile yarn install --pure-lockfile
...@@ -41,11 +41,11 @@ gem install fpm -v 1.4 ...@@ -41,11 +41,11 @@ gem install fpm -v 1.4
echo "current dir: $(pwd)" echo "current dir: $(pwd)"
if [ "$CIRCLE_TAG" != "" ]; then if [ "$CIRCLE_TAG" != "" ]; then
echo "Building incremental build for master" echo "Packaging a release from tag $CIRCLE_TAG"
go run build.go package latest
else
echo "Building a release"
go run build.go -includeBuildNumber=false package latest go run build.go -includeBuildNumber=false package latest
else
echo "Packaging incremental build for $CIRCLE_BRANCH"
go run build.go package latest
fi fi
cp dist/* /tmp/dist/ cp dist/* /tmp/dist/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment