Skip to content

Commit

Permalink
Merge pull request #5 from segmentio/fix-autorelease
Browse files Browse the repository at this point in the history
Fix autorelease
  • Loading branch information
dfuentes authored Jun 22, 2017
2 parents 0a4f848 + b121bbf commit d884916
Show file tree
Hide file tree
Showing 4 changed files with 240 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
version := $$CIRCLE_TAG
GITHUB_TOKEN := $$GH_LOGIN

release: gh-release clean dist
govendor sync
github-release release \
--security-token $$GH_LOGIN \
--user segmentio \
--repo chamber \
--tag $(version) \
--name $(version)

github-release upload \
--security-token $$GH_LOGIN \
--user segmentio \
--repo chamber \
--tag $(version) \
--name chamber-$(version)-darwin-amd64 \
--file dist/chamber-$(version)-darwin-amd64

github-release upload \
--security-token $$GH_LOGIN \
--user segmentio \
--repo chamber \
--tag $(version) \
Expand All @@ -32,3 +35,6 @@ dist:

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

govendor:
go get -u github.com/kardianos/govendor
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ $ chamber exec <service> -- <your executable>
```

The purpose of this command is to be used inside your service's docker container. Exec sets up environment variables populated with all the latest versions of secrets for the given service and environment.

## Releasing

To cut a new release, just push a tag named `v<semver>` where `<semver>` is a valid semver version. This tag will be used by Circle to automatically publish a github release.
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
215 changes: 215 additions & 0 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
{
"comment": "",
"ignore": "test",
"package": [
{
"checksumSHA1": "W/q89+AUzZNVNySmkHKFERn7OxY=",
"path": "github.com/aws/aws-sdk-go/aws",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "Y9W+4GimK4Fuxq+vyIskVYFRnX4=",
"path": "github.com/aws/aws-sdk-go/aws/awserr",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "yyYr41HZ1Aq0hWc3J5ijXwYEcac=",
"path": "github.com/aws/aws-sdk-go/aws/awsutil",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "iThCyNRL/oQFD9CF2SYgBGl+aww=",
"path": "github.com/aws/aws-sdk-go/aws/client",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "ieAJ+Cvp/PKv1LpUEnUXpc3OI6E=",
"path": "github.com/aws/aws-sdk-go/aws/client/metadata",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "0Gfk83qXYimO87ZoK1lL9+ifWHo=",
"path": "github.com/aws/aws-sdk-go/aws/corehandlers",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "zu5C95rmCZff6NYZb62lEaT5ibE=",
"path": "github.com/aws/aws-sdk-go/aws/credentials",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "u3GOAJLmdvbuNUeUEcZSEAOeL/0=",
"path": "github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "NUJUTWlc1sV8b7WjfiYc4JZbXl0=",
"path": "github.com/aws/aws-sdk-go/aws/credentials/endpointcreds",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "6cj/zsRmcxkE1TLS+v910GbQYg0=",
"path": "github.com/aws/aws-sdk-go/aws/credentials/stscreds",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "l2O7P/kvovK2zxKhuFehFNXLk+Q=",
"path": "github.com/aws/aws-sdk-go/aws/defaults",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "/EXbk/z2TWjWc1Hvb4QYs3Wmhb8=",
"path": "github.com/aws/aws-sdk-go/aws/ec2metadata",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "31f7CpCeRUQrUidzHj2uNwpBfCY=",
"path": "github.com/aws/aws-sdk-go/aws/endpoints",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "junFAYG8KDpoHN9J0dkQDJHG1UA=",
"path": "github.com/aws/aws-sdk-go/aws/request",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "5pzA5afgeU1alfACFh8z2CDUMao=",
"path": "github.com/aws/aws-sdk-go/aws/session",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "SvIsunO8D9MEKbetMENA4WRnyeE=",
"path": "github.com/aws/aws-sdk-go/aws/signer/v4",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "wk7EyvDaHwb5qqoOP/4d3cV0708=",
"path": "github.com/aws/aws-sdk-go/private/protocol",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "O6hcK24yI6w7FA+g4Pbr+eQ7pys=",
"path": "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "R00RL5jJXRYq1iiK1+PGvMfvXyM=",
"path": "github.com/aws/aws-sdk-go/private/protocol/jsonrpc",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "ZqY5RWavBLWTo6j9xqdyBEaNFRk=",
"path": "github.com/aws/aws-sdk-go/private/protocol/query",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "Drt1JfLMa0DQEZLWrnMlTWaIcC8=",
"path": "github.com/aws/aws-sdk-go/private/protocol/query/queryutil",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "VCTh+dEaqqhog5ncy/WTt9+/gFM=",
"path": "github.com/aws/aws-sdk-go/private/protocol/rest",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "lZ1z4xAbT8euCzKoAsnEYic60VE=",
"path": "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "O1hCpo/BItZs+ADL7VXveRKn5yg=",
"path": "github.com/aws/aws-sdk-go/service/ssm",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "395UEmdKXxyTMbFvexUzR/y1X8o=",
"path": "github.com/aws/aws-sdk-go/service/ssm/ssmiface",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "o8O6Fn1ThDBMRb5OKU3UBziey+A=",
"path": "github.com/aws/aws-sdk-go/service/sts",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "jqSVRDK7dGg6E/NikVq1Kw6gdbA=",
"origin": "github.com/stretchr/testify/vendor/github.com/davecgh/go-spew/spew",
"path": "github.com/davecgh/go-spew/spew",
"revision": "9f9027faeb0dad515336ed2f28317f9f8f527ab4",
"revisionTime": "2016-01-29T19:31:06Z"
},
{
"checksumSHA1": "VvZKmbuBN1QAG699KduTdmSPwA4=",
"origin": "github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini",
"path": "github.com/go-ini/ini",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "40vJyUB4ezQSn/NSadsKEOrudMc=",
"path": "github.com/inconshreveable/mousetrap",
"revision": "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75",
"revisionTime": "2014-10-17T20:07:13Z"
},
{
"checksumSHA1": "0ZrwvB6KoGPj2PoDNSEJwxQ6Mog=",
"origin": "github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath",
"path": "github.com/jmespath/go-jmespath",
"revision": "3bc643c63c6f8716320182b6842581d6c80572fa",
"revisionTime": "2017-03-23T00:38:48Z"
},
{
"checksumSHA1": "zKKp5SZ3d3ycKe4EKMNT0BqAWBw=",
"origin": "github.com/stretchr/testify/vendor/github.com/pmezard/go-difflib/difflib",
"path": "github.com/pmezard/go-difflib/difflib",
"revision": "9f9027faeb0dad515336ed2f28317f9f8f527ab4",
"revisionTime": "2016-01-29T19:31:06Z"
},
{
"checksumSHA1": "q4eQ3EqPmvAISYOp3DD/GrccXtY=",
"path": "github.com/spf13/cobra",
"revision": "31694f19adeeaeb0a0e5fe95441b390d757753d2",
"revisionTime": "2017-06-21T17:26:46Z"
},
{
"checksumSHA1": "STxYqRb4gnlSr3mRpT+Igfdz/kM=",
"path": "github.com/spf13/pflag",
"revision": "e57e3eeb33f795204c1ca35f56c44f83227c6e66",
"revisionTime": "2017-05-08T18:43:26Z"
},
{
"checksumSHA1": "Bn333k9lTndxU3D6n/G5c+GMcYY=",
"path": "github.com/stretchr/testify/assert",
"revision": "9f9027faeb0dad515336ed2f28317f9f8f527ab4",
"revisionTime": "2016-01-29T19:31:06Z"
}
],
"rootPath": "github.com/segmentio/chamber"
}

0 comments on commit d884916

Please sign in to comment.