Skip to content

Commit

Permalink
💚change known host generation
Browse files Browse the repository at this point in the history
  • Loading branch information
kdev committed Sep 21, 2022
1 parent 0a06cc4 commit cfe50ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ jobs:
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_DEPLOY_KEY }}
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
if_key_exists: replace

- name: Add known_hosts
run: ssh-keyscan -H ${{ secrets.SSH_KNOWN_HOSTS }} >> ~/.ssh/known_hosts
# - name: Add known_hosts
# run: ssh-keyscan -H ${{ secrets.SSH_KNOWN_HOSTS }} >> ~/.ssh/known_hosts

- name: Deployment
if: ${{ success() }}
Expand Down

0 comments on commit cfe50ee

Please sign in to comment.