Skip to content

Commit

Permalink
Extra yolo
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthHater committed Nov 5, 2019
1 parent d3daa1a commit 04b6f47
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .circleci/ci-publish.sh
@@ -1,12 +1,12 @@
#!/usr/bin/env bash

# Configure GIT with host fingerprint, user info and SSH key for pushing
mkdir -p ~/.ssh
echo "Adding github.com as known host..."
echo $GITHUB_FINGERPRINT >> ~/.ssh/known_hosts
echo "Setting private SSH key for pushing new version to repo..."
echo $GITHUB_COMMIT_KEY | base64 --decode >> ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa # prevents "UNPROTECTED PRIVATE KEY FILE" error
# mkdir -p ~/.ssh
# echo "Adding github.com as known host..."
# echo $GITHUB_FINGERPRINT >> ~/.ssh/known_hosts
# echo "Setting private SSH key for pushing new version to repo..."
# echo $GITHUB_COMMIT_KEY | base64 --decode >> ~/.ssh/id_rsa
# chmod 400 ~/.ssh/id_rsa # prevents "UNPROTECTED PRIVATE KEY FILE" error
git config user.name "$GITHUB_USERNAME"
git config user.email "$GITHUB_EMAIL"

Expand Down

0 comments on commit 04b6f47

Please sign in to comment.