mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-13 21:12:57 +00:00
Fix ssh key format
New Docker Hub UI loses newlines in the env var settings. Loss of new lines leads ssh-add to prompt and fail when loading the key. Base64 encode and decode the key to workaround the limitation.
This commit is contained in:
@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
|
||||
|
||||
# Configure git so it can push back to GitHub.
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add <(echo "$DEPLOY_KEY")
|
||||
ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
|
||||
ssh-add -l
|
||||
git config --global user.email "jupyter@googlegroups.com"
|
||||
git config --global user.name "Jupyter Docker Stacks"
|
||||
|
@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
|
||||
|
||||
# Configure git so it can push back to GitHub.
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add <(echo "$DEPLOY_KEY")
|
||||
ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
|
||||
ssh-add -l
|
||||
git config --global user.email "jupyter@googlegroups.com"
|
||||
git config --global user.name "Jupyter Docker Stacks"
|
||||
|
@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
|
||||
|
||||
# Configure git so it can push back to GitHub.
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add <(echo "$DEPLOY_KEY")
|
||||
ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
|
||||
ssh-add -l
|
||||
git config --global user.email "jupyter@googlegroups.com"
|
||||
git config --global user.name "Jupyter Docker Stacks"
|
||||
|
@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
|
||||
|
||||
# Configure git so it can push back to GitHub.
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add <(echo "$DEPLOY_KEY")
|
||||
ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
|
||||
ssh-add -l
|
||||
git config --global user.email "jupyter@googlegroups.com"
|
||||
git config --global user.name "Jupyter Docker Stacks"
|
||||
|
@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
|
||||
|
||||
# Configure git so it can push back to GitHub.
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add <(echo "$DEPLOY_KEY")
|
||||
ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
|
||||
ssh-add -l
|
||||
git config --global user.email "jupyter@googlegroups.com"
|
||||
git config --global user.name "Jupyter Docker Stacks"
|
||||
|
@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
|
||||
|
||||
# Configure git so it can push back to GitHub.
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add <(echo "$DEPLOY_KEY")
|
||||
ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
|
||||
ssh-add -l
|
||||
git config --global user.email "jupyter@googlegroups.com"
|
||||
git config --global user.name "Jupyter Docker Stacks"
|
||||
|
@@ -18,7 +18,7 @@ INDEX_FILE="${GIT_SANDBOX}/Home.md"
|
||||
|
||||
# Configure git so it can push back to GitHub.
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add <(echo "$DEPLOY_KEY")
|
||||
ssh-add <(base64 -d <(echo "$DEPLOY_KEY"))
|
||||
ssh-add -l
|
||||
git config --global user.email "jupyter@googlegroups.com"
|
||||
git config --global user.name "Jupyter Docker Stacks"
|
||||
|
Reference in New Issue
Block a user