Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3 from segmentio/fix-autorelease
Browse files Browse the repository at this point in the history
Fix auto release
  • Loading branch information
dfuentes committed Jun 22, 2017
2 parents 83495e6 + 1f1079e commit d6a093a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version := $$CIRCLE_TAG

release: gh-release clean dist
release: gh-release govendor clean dist
govendor sync
github-release release \
--security-token $$GH_LOGIN \
--user segmentio \
Expand Down Expand Up @@ -34,3 +35,6 @@ dist:

gh-release:
go get -u github.com/aktau/github-release

govendor:
go get -u github.com/kardianos/govendor
15 changes: 14 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,17 @@ deployment:
release:
tag: /v[0-9]+(\.[0-9]+)*/
commands:
- make release
- >
docker run
$(env | grep -E '^CIRCLE_|^DOCKER_|^AWS_|^GH_|^NPM_|^PRODUCTION_|^STAGE_|^CIRCLECI=|^CI=' | sed 's/^/--env /g' | tr "\\n" " ")
--rm
--tty
--interactive
--name release
--net host
--volume /var/run/docker.sock:/run/docker.sock
--volume ${GOPATH%%:*}/src:/go/src
--volume ${PWD}:/go/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
--workdir /go/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
--entrypoint make
segment/golang-private:latest release

0 comments on commit d6a093a

Please sign in to comment.