Skip to content

Commit

Permalink
setup releases
Browse files Browse the repository at this point in the history
  • Loading branch information
s12v committed Dec 9, 2018
1 parent 9d6c310 commit 8cb3a69
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
coverage.txt
main
secure-exec
secure-exec-*
vendor
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,16 @@ script:

after_success:
- bash <(curl -s https://codecov.io/bash)

before_deploy:
- ls secure-exec-* | xargs -I '{}' bash -c "sha2 -256 -q {} > {}.sha256"

deploy:
provider: releases
api_key:
secure: r0g/KpsGvbG1Dpzpx3f2A15GWQLxoQ7O/cjUv0sBC67w0AsMO8Mj9xjAn8jWfVPmD7nQlBPlMsPY3GSfJkz9mXn1Lxet/khqHSkKA/XDZejN91npisFFBwzu4c38JOr3bBk3R25X69AVVbhvHtozVqww88IYqfw3A57MKbOKutolhZmkCux7zJYrVQDvSkorVzKGXckYh9Xg7KW9C5XgU5LhnpDicV/yc26kWDimQ6ND9BGo4dnEpTK3xFcD5MgnuC9cXTJ9xmZDvhiLBLJ+xbs5cEGIXrD63svQD/KzUa62yAId60+mBM+A/N5frp1uPrVtZRjgk7b0kwjiNVlKVkC2ooug+VzgXmjkFkZ7CPgzPVKrDtMAwVnP3axqn3FHJYYn81cOSZNxy7KV80JrB+tNKHJKGNE4R1iM51TV07yUzoRVjY1t/FOquvBNMO1NktQCGSOJv28r/H3diT9lLCap5Mg2DsA0kZvEtcfUO0dQKQ9oFWq7bhS8z5r32KHk1fWVk/oD68tfvZDkhw+eKrgqzduqKALWVDq/LAS9z32iF5EvcJHRjXYF2pOPMN0jJEm0toqJQO9BO0cTT3xoApMvCT5eOxUOoryBzNyHjVPem47bYYx4ohuZ95qgpUT6nTGsIf1nZEOPuZ5xw9SxB5pPo/9Q1btGS77wUX2Z7JM=
file_glob: true
file: "secure-exec-*"
skip_cleanup: true
on:
tags: true
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ test:
go test -v -tags "awskms awsssm" ./... -coverprofile=coverage.txt -covermode=atomic

build:
GOOS=linux GOARCH=amd64 go build -i -tags 'awskms awsssm' -o secure-exec
GOOS=linux GOARCH=amd64 go build -i -tags 'awskms awsssm' -o "secure-exec-linux-amd64"
GOOS=darwin GOARCH=amd64 go build -i -tags 'awskms awsssm' -o "secure-exec-darwin-amd64"

docker:
docker build -t secure-exec-example .
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,17 @@ docker run \

`KMS_PARAM` and `SSM_PARAM` will be decrypted/populated and passed to `myapp` environment.
`docker inspect` will still see the old values

## Build

`make` will build a linux binary will all providers enabled.

To chose providers (for example, only SSM), run
```
make clean deps
GOOS=linux GOARCH=amd64 go build -i -tags 'awsssm' -o secure-exec
```

## Adding a new provider

See example PR: https://github.com/s12v/secure-exec/pull/1

0 comments on commit 8cb3a69

Please sign in to comment.