Skip to content

Commit

Permalink
update circle2.0 config to deploy when tags are pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielc committed Jun 9, 2017
1 parent 65431d4 commit 0a2d2b0
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,19 @@ jobs:
name: Tests
command: |
./circle-test.sh
- deploy:
name: Deploy Release Packages
command: |
if [[ "$CIRCLE_TAG" =~ v[0-9]+(\.[0-9]+){2}(-(rc|beta)[0-9]+)? ]]; then
echo "Building/Publishing release packages for tag $CIRCLE_TAG"
./build.sh --debug --clean --generate --package --package-udfs --upload --bucket=dl.influxdata.com/kapacitor/releases --platform=all --arch=all --release
fi
# This is old Circle 1.0 syntax but is should work as per
# https://discuss.circleci.com/t/git-tag-deploys-in-2-0/9493/8
deployment:
release:
fake_deploy_for_cci2:
tag: /v[0-9]+(\.[0-9]+){2}(-(rc|beta)[0-9]+)?/
commands:
- ./build.sh --debug --clean --generate --package --package-udfs --upload --bucket=dl.influxdata.com/kapacitor/releases --platform=all --arch=all --release
# NOTE: this command doesn't actually get run, rather this simply triggers that the above deploy runs when a tag is pushed.
# See https://discuss.circleci.com/t/git-tag-deploys-in-2-0/9493/6
- echo "make tags run in 2.0"

0 comments on commit 0a2d2b0

Please sign in to comment.