forked from influxdata/kapacitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
32 lines (30 loc) · 1.08 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# CircleCI 2.0 configuration
version: 2
jobs:
build:
parallelism: 3
docker:
- image: nathanielc/docker-client
working_directory: ~/kapacitor
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
- run:
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
deployment:
fake_deploy_for_cci2:
tag: /v[0-9]+(\.[0-9]+){2}(-(rc|beta)[0-9]+)?/
commands:
# 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"