Skip to content

Commit

Permalink
Add example usage and update to singular
Browse files Browse the repository at this point in the history
  • Loading branch information
VJftw committed Aug 29, 2018
1 parent 14170e6 commit 43dd666
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# parameters.aws-ssm
# parameter.aws-ssm
Provides parameters from AWS SSM (Parameter Store)

## Usage

```
parameters:
- use: https://github.com/velocity-ci/parameter.aws-ssm/releases/download/0.1.0/aws-ssm
arguments:
name: <parameter name in AWS SSM Parameter Store>
exports:
value: <parameter name>
```

See `tasks/publish.yml` for example.
8 changes: 4 additions & 4 deletions tasks/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ description: "Builds and publishes binary to GitHub Releases"
name: publish

parameters:
- use: https://github.com/velocity-ci/parameters.aws-ssm/releases/download/0.1.0/aws-ssm
- use: https://github.com/velocity-ci/parameter.aws-ssm/releases/download/0.1.0/aws-ssm
arguments:
name: /velocityci/github-release-token
exports:
Expand All @@ -12,13 +12,13 @@ steps:
- description: Install dependencies
type: run
image: vjftw/go-dep:1.10
mountPoint: /go/src/github.com/velocity-ci/parameters.aws-ssm
mountPoint: /go/src/github.com/velocity-ci/parameter.aws-ssm
command: dep ensure -v

- description: Build binary
type: run
image: golang:1.10-alpine
mountPoint: /go/src/github.com/velocity-ci/parameters.aws-ssm
mountPoint: /go/src/github.com/velocity-ci/parameter.aws-ssm
environment:
CGO_ENABLED: 0
GOOS: linux
Expand All @@ -29,4 +29,4 @@ steps:
image: civelocity/run.github-release
environment:
GITHUB_ACCESS_TOKEN: ${github_release_token}
command: velocity-ci parameters.aws-ssm ${GIT_DESCRIBE} dist/aws-ssm
command: velocity-ci parameter.aws-ssm ${GIT_DESCRIBE} dist/aws-ssm

0 comments on commit 43dd666

Please sign in to comment.