Skip to content

Commit

Permalink
now copying the entire private key as text
Browse files Browse the repository at this point in the history
  • Loading branch information
kneerunjun committed Jun 22, 2024
1 parent ee15612 commit b8cd36e
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/wkflw.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@ jobs:
uses: actions/checkout@v2

- name: Set up SSH on actions container
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
mkdir -p ~/.ssh
echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H $RASPBERRY_PI_IP >> ~/.ssh/known_hosts
# ssh-keyscan -H ${RASPBERRY_PI_IP}
# uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

# run: |
# mkdir -p ~/.ssh
# echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
# chmod 600 ~/.ssh/id_rsa
# # ssh-keyscan -H $RASPBERRY_PI_IP >> ~/.ssh/known_hosts
# # ssh-keyscan -H ${RASPBERRY_PI_IP}
# ssh -v $RASPBERRY_PI_UNAME@$RASPBERRY_PI_IP

# - name: Get current branch name
# id: get_branch
# run: |
Expand Down

0 comments on commit b8cd36e

Please sign in to comment.