Skip to content

Commit

Permalink
Allow branding that does not match branch/tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardiff committed Mar 6, 2018
1 parent f0e2be1 commit 601d3c9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ jobs:
echo "export PACKAGE_ITERATION=$(date '+%Y%m%d')$CIRCLE_BUILD_NUM" >> build.env
echo "export DOCKER_TAG=nightly" >> build.env
# Build from working directory (needed for omnibus and when version does not match branch/tag)
echo "export FORCE_GIT_TAGGED=0" >> build.env
cat build.env
- persist_to_workspace:
root: /tmp/workspace
Expand All @@ -120,9 +123,14 @@ jobs:
cd /tmp/workspace/distribution-scripts
# How to brand it
echo "export CRYSTAL_VERSION=$CIRCLE_BRANCH" >> build.env
export VERSION=${CIRCLE_BRANCH/release\//}
export VERSION=${VERSION/\//-}-dev
echo "export CRYSTAL_VERSION=$VERSION" >> build.env
echo "export PACKAGE_ITERATION=$CIRCLE_BUILD_NUM" >> build.env
echo "export DOCKER_TAG=${CIRCLE_BRANCH/\//-}-dev" >> build.env
echo "export DOCKER_TAG=$VERSION" >> build.env
# Build from working directory (needed for omnibus and when version does not match branch/tag)
echo "export FORCE_GIT_TAGGED=0" >> build.env
cat build.env
- persist_to_workspace:
Expand Down Expand Up @@ -291,7 +299,8 @@ workflows:
nightly_release:
triggers:
- schedule:
cron: "0 0 * * *"
# TODO change
cron: "30 * * * *"
filters:
branches:
only:
Expand Down

0 comments on commit 601d3c9

Please sign in to comment.