diff --git a/.github/workflows/scp-deploy.yml b/.github/workflows/scp-deploy.yml index b9181e3a..58008871 100644 --- a/.github/workflows/scp-deploy.yml +++ b/.github/workflows/scp-deploy.yml @@ -27,6 +27,7 @@ jobs: run: | eval $(ssh-agent -s) ssh-add - <<< "${{ secrets.SCP_CERTIFICATE }}" + mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts ssh-keyscan -t rsa ${{ secrets.SCP_HOST }} >> ~/.ssh/known_hosts - name: Deploy enrollment-server.war shell: bash