From e7d6f2d9ec941a7e5cdc8e3bf7959a129df13d7b Mon Sep 17 00:00:00 2001 From: Filbert Jahja Date: Tue, 26 Jul 2016 16:24:58 -0700 Subject: [PATCH] Add SSH key step to pipeline --- wercker.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/wercker.yml b/wercker.yml index b139e5f9..be1dc676 100644 --- a/wercker.yml +++ b/wercker.yml @@ -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