Skip to content

Commit

Permalink
ignore host identity check and just use hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
KTachibanaM committed Feb 6, 2024
1 parent 1fcba93 commit c6c0b1f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/test-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,5 @@ jobs:
with:
authkey: ${{ secrets.TS_AUTHKEY }}
version: 1.58.2
- name: Add machine to known hosts
id: ssh
run: |
mkdir -p ~/.ssh
MACHINE_IP="$(tailscale ip -4 ktcorp)"
ssh-keyscan $MACHINE_IP >> ~/.ssh/known_hosts
- name: Ssh into the machine, pull container and restart
run: |
MACHINE_IP="$(tailscale ip -4 ktcorp)"
ssh "ubuntu@$MACHINE_IP" "cd /home/ubuntu/rss-lambda && docker compose pull && docker compose up -d"
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "ubuntu@ktcorp" "cd /home/ubuntu/rss-lambda && docker compose pull && docker compose up -d"

0 comments on commit c6c0b1f

Please sign in to comment.