Skip to content

Commit

Permalink
Fix SSH key name
Browse files Browse the repository at this point in the history
  • Loading branch information
danlooo committed Dec 2, 2024
1 parent 1666f77 commit c03c662
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ jobs:
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
install -m 600 -D /dev/null ~/.ssh/id_key
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_key
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
host='app'
hosts="$(dig +short "$host" | grep -v '\.$' | sed -z 's|\n|,|g')$host"
ssh-keyscan -H "$hosts" > ~/.ssh/known_hosts
- uses: actions/checkout@v4
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- name: Deploy website
run: |
ssh app hostname

0 comments on commit c03c662

Please sign in to comment.