Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

worker key install --env #3476

Closed
yesnault opened this issue Oct 19, 2018 · 0 comments · Fixed by #3482
Closed

worker key install --env #3476

yesnault opened this issue Oct 19, 2018 · 0 comments · Fixed by #3482
Assignees

Comments

@yesnault
Copy link
Member

yesnault commented Oct 19, 2018

new arg on worker key install : --env

worker key install proj-the-key --env

will display:

keyfile=$(worker key install proj-the-key)
echo "ssh -i keyfile -o StrictHostKeyChecking=no \$@" > keyfile-gitssh.sh
chmod +x keyfile-gitssh.sh
export GIT_SSH="keyfile-gitssh.sh"
export PKEY=keyfile

so that, we can use the command like :
eval $(worker key install proj-the-key --env)

so that (bis): the key can be used with a git clone

@yesnault yesnault self-assigned this Oct 21, 2018
yesnault added a commit that referenced this issue Oct 21, 2018
close #3476

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
yesnault added a commit that referenced this issue Oct 23, 2018
close #3476

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant