Skip to content

Commit

Permalink
Update hostname for tailscale github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rogierlommers committed Sep 18, 2023
1 parent 3aa6687 commit 49c1c9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ jobs:
echo "$SSH_KEY" > ~/.ssh/ssh.key
chmod 600 ~/.ssh/ssh.key
cat >>~/.ssh/config <<END
Host vps
HostName $(tailscale ip -6 vps)
Host services
HostName $(tailscale ip -6 services)
User $SSH_USER
IdentityFile ~/.ssh/ssh.key
StrictHostKeyChecking no
Expand All @@ -94,7 +94,7 @@ jobs:
SSH_KEY: ${{ secrets.SSH_KEY }}

- name: Run docker-compose commands
run: ssh vps 'cd /srv/local/services && docker compose kill resume && docker system prune --all --force && docker compose up resume -d'
run: ssh services 'cd /srv/local/services && docker compose kill resume && docker system prune --all --force && docker compose up resume -d'

- name: Run tailscale logouut
run: sudo tailscale logout

0 comments on commit 49c1c9c

Please sign in to comment.