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 #15 from segmentio/fix-mac-release
Browse files Browse the repository at this point in the history
Update makefile and readme instructions for mac release
  • Loading branch information
dfuentes authored Nov 16, 2017
2 parents 5fabf71 + e9fb0b0 commit 20bd3d7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
version := $$CIRCLE_TAG

release: gh-release govendor clean dist
govendor sync
github-release release \
--security-token $$GH_LOGIN \
--user segmentio \
Expand All @@ -14,25 +13,31 @@ release: gh-release govendor clean dist
--user segmentio \
--repo aws-okta \
--tag $(version) \
--name aws-okta-$(version)-darwin-amd64 \
--file dist/aws-okta-$(version)-darwin-amd64
--name aws-okta-$(version)-linux-amd64 \
--file dist/aws-okta-$(version)-linux-amd64

release-mac: gh-release govendor clean dist-mac
github-release upload \
--security-token $$GH_LOGIN \
--user segmentio \
--repo aws-okta \
--tag $(version) \
--name aws-okta-$(version)-linux-amd64 \
--file dist/aws-okta-$(version)-linux-amd64
--name aws-okta-$(version)-darwin-amd64 \
--file dist/aws-okta-$(version)-darwin-amd64

clean:
rm -rf ./dist

dist:
mkdir dist
GOOS=darwin GOARCH=amd64 go build -o dist/aws-okta-$(version)-darwin-amd64
govendor sync
GOOS=linux GOARCH=amd64 go build -o dist/aws-okta-$(version)-linux-amd64

dist-mac:
mkdir dist
govendor sync
GOOS=darwin GOARCH=amd64 go build -o dist/aws-okta-$(version)-darwin-amd64

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

Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ Your setup may require additional roles to be configured if your admin has set u

We use 99design's keyring package that they use in `aws-vault`. Because of this, you can choose between different pluggable secret storage backends just like in `aws-vault`. You can either set your backend from the command line as a flag, or set the `AWS_OKTA_BACKEND` environment variable.

## Releasing

Pushing a new tag will cause Circle to automatically create and push a linux release. After this is done, you shoule run (from a mac):

```bash
$ export CIRCLE_TAG=`git describe --tags`
$ make release-mac
```

## Internals

### Authentication process
Expand Down

0 comments on commit 20bd3d7

Please sign in to comment.