Skip to content

Commit

Permalink
ignore host key check
Browse files Browse the repository at this point in the history
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
  • Loading branch information
Daxin Wang committed Jan 4, 2024
1 parent 123703a commit 758b9e5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
- name: Build and Deploy
env:
WEBSITE_HOST: ${{ secrets.WEBSITE_HOST }}
WEBSITE_HOST_KEY: ${{ secrets.WEBSITE_HOST_KEY }}
WEBSITE_PATH: ${{ secrets.WEBSITE_PATH }}
run: |
# Set the real domain
Expand All @@ -35,10 +34,7 @@ jobs:
npm install && npm run build
# Compress and transfer the tarball
cd public && tar -cvzf public.tar.gz *
# Add the host key
echo $WEBSITE_HOST_KEY >> ~/.ssh/known_hosts
scp public.tar.gz "$WEBSITE_HOST":$WEBSITE_PATH/..
scp -o StrictHostKeyChecking=no public.tar.gz "$WEBSITE_HOST":$WEBSITE_PATH/..
# Update the website
ssh "$WEBSITE_HOST" << eof
echo "Removing the old files..."
Expand Down

0 comments on commit 758b9e5

Please sign in to comment.