Skip to content

Commit

Permalink
Merge pull request #7 from screwdriver-cd/versionUp
Browse files Browse the repository at this point in the history
Add SSH key step to pipeline
  • Loading branch information
jer authored Jul 27, 2016
2 parents 6cd7857 + e7d6f2d commit 2b063c2
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,22 +11,39 @@ 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: 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 2b063c2

Please sign in to comment.