Skip to content

Commit

Permalink
Add SSH key step to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Filbird committed Jul 26, 2016
1 parent cbbe542 commit e7d6f2d
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,36 @@ build:
code: go build launch.go

deploy:
steps:
# Add our deploy key to SSH
- add-ssh-key:
keyname: GIT_KEY

# Add GitHub's SSH fingerprint to SSH known_hosts
- add-to-known_hosts:
hostname: github.com
fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
type: rsa

- script:
name: update tags
code: git fetch --tags

- script:
name: get highest version from tags
code: export VERSION=$(sh incrementVersion.sh)
code: export VERSION=$(bash incrementVersion.sh)

- script:
name: add new annotated tag
code: git tag -a $VERSION -m "Tagging release version $VERSION"

- script:
name: push newly added tag
code: git push origin $VERSION
code: git push origin $VERSION

- github-create-release:
token: $GITHUB_TOKEN
tag: $VERSION

- github-upload-asset:
token: $GITHUB_TOKEN
file: launch
Expand Down

0 comments on commit e7d6f2d

Please sign in to comment.