Skip to content

Instantly share code, notes, and snippets.

@tamakiii
Created December 6, 2017 12:53
Show Gist options
  • Save tamakiii/1b0f40e36e5b93b90964ae469c839a2b to your computer and use it in GitHub Desktop.
Save tamakiii/1b0f40e36e5b93b90964ae469c839a2b to your computer and use it in GitHub Desktop.
wercker build with `add-ssh-key` locally
# https://github.com/wercker/step-add-ssh-key/blob/ff3f3c160a637a72f737de211d3ef22f70bf42e8/run.sh
X_GITHUB_SSH_KEY_PRIVATE=$(cat ~/.ssh/id_rsa) wercker --debug --verbose build
box:
id: ...
build:
steps:
- add-ssh-key:
keyname: GITHUB_SSH_KEY
host: github.com
- add-to-known_hosts:
hostname: github.com
fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
- add-to-known_hosts:
hostname: github.com
fingerprint: SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8
- script:
name: clone
code: git clone ...
@tamakiii
Copy link
Author

tamakiii commented Dec 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment