-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Conversation
echo $DOCS_DEPLOY_KEY > /ssh/allennlp-docs.key | ||
ssh-add /ssh/allennlp-docs.key | ||
GIT_SSH_COMMAND='ssh -i /ssh/allennlp-docs.key' git clone git@github.com:allenai/allennlp-docs.git /allennlp-docs | ||
echo $DOCS_DEPLOY_KEY > ~/allennlp-docs.key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would have had to add sudo to a bunch of these commands if we didn't put the key in the home directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have to set the permissions on the key to 600
? Sometimes ssh
is finicky about that.
mkdir -p ~/allennlp-docs/$DIRECTORY | ||
cp -r site/* ~/allennlp-docs/$DIRECTORY | ||
|
||
# And push them up to GitHub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to actually push the files 🤦
echo $DOCS_DEPLOY_KEY > /ssh/allennlp-docs.key | ||
ssh-add /ssh/allennlp-docs.key | ||
GIT_SSH_COMMAND='ssh -i /ssh/allennlp-docs.key' git clone git@github.com:allenai/allennlp-docs.git /allennlp-docs | ||
echo $DOCS_DEPLOY_KEY > ~/allennlp-docs.key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have to set the permissions on the key to 600
? Sometimes ssh
is finicky about that.
No description provided.