Skip to content

Commit

Permalink
Update circle.yml
Browse files Browse the repository at this point in the history
Updated circle.yml to do complete 'go get' prior to build / test
  • Loading branch information
danesparza committed Feb 26, 2016
1 parent cb8b35a commit 1f610d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ machine:

dependencies:
override:
- go get -d -v ./...
- go get github.com/mitchellh/gox
- gox -os="windows" -output "${CIRCLE_ARTIFACTS}/${CIRCLE_PROJECT_REPONAME}_{{.OS}}_{{.Arch}}"
- docker info
- docker build -t danesparza/calendar-service:$CIRCLE_BUILD_NUM .

deployment:
hub:
branch: master
commands:
- go get github.com/tcnksm/ghr
- ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME v1.0.$CIRCLE_BUILD_NUM $CIRCLE_ARTIFACTS/
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push danesparza/calendar-service
- docker push danesparza/calendar-service

0 comments on commit 1f610d6

Please sign in to comment.