forked from holidayextras/terraform-provider-googlecli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
24 lines (20 loc) · 949 Bytes
/
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
machine:
environment:
GOROOT: ""
PATH: "/usr/local/go/bin:/usr/local/go_workspace/bin:~/.go_workspace/bin:${PATH}"
GOPATH: "${HOME}/.go_workspace:/usr/local/go_workspace:${HOME}/.go_project"
dependencies:
override:
- ./go_setup.sh
test:
override:
- echo "tech debt"
deployment:
demo:
branch: master
commands:
- cd ${HOME}/.go_workspace/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME} && go build -v -o $HOME/$CIRCLE_PROJECT_REPONAME/$CIRCLE_PROJECT_REPONAME
- cd $HOME/$CIRCLE_PROJECT_REPONAME && echo $GOOGLE_CREDENTIALS > account.json
- /opt/google-cloud-sdk/bin/gcloud auth activate-service-account --key-file $HOME/$CIRCLE_PROJECT_REPONAME/account.json
- gsutil cp $HOME/$CIRCLE_PROJECT_REPONAME/$CIRCLE_PROJECT_REPONAME gs://$GSTORAGE_DEST_BUCKET/$CIRCLE_PROJECT_REPONAME
- gsutil acl ch -u AllUsers:R gs://$GSTORAGE_DEST_BUCKET/$CIRCLE_PROJECT_REPONAME