forked from austinlparker/kismatic-provision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
36 lines (34 loc) · 1.17 KB
/
circle.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
33
34
35
36
version: 2
defaults: &defaults
working_directory: /go/src/github.com/apprenda/kismatic-provision
docker:
- image: golang:1.10.2
jobs:
build:
<<: *defaults
steps:
- checkout
- run: make build
- run: mkdir release
- run: cp /go/src/github.com/apprenda/kismatic-provision/bin/darwin/provision release/provision-darwin-amd64
- run: cp /go/src/github.com/apprenda/kismatic-provision/bin/linux/provision release/provision-linux-amd64
- run: go get -u github.com/tcnksm/ghr
# Deploy to GitHub release
- deploy:
command: |
if [ -n "$CIRCLE_TAG" ]
then
echo $CIRCLE_TAG
ghr -draft -u $CIRCLE_PROJECT_USERNAME $CIRCLE_TAG release/
fi
- store_artifacts:
path: /go/src/github.com/apprenda/kismatic-provision/release/provision-darwin-amd64
destination: provision-darwin-amd64
- store_artifacts:
path: /go/src/github.com/apprenda/kismatic-provision/release/provision-linux-amd64
destination: provision-linux-amd64
deployment:
fake_deploy_for_cci2:
tag: /.*/
commands:
- echo "make tags run in 2.0"