Skip to content

Commit

Permalink
Fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogier Lommers committed Jan 3, 2024
1 parent c41b09e commit 3a75c69
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,16 @@ jobs:
name: "Pull latest image and run"
runs-on: ubuntu-latest
needs: build-and-push-image
# inspiration: https://blog.benoitblanchon.fr/github-action-run-ssh-commands/

steps:

# More info: https://github.com/tailscale/github-action
- name: Tailscale
uses: tailscale/github-action@main
uses: tailscale/github-action@v2
with:
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
version: 1.36.2
# get keys here: https://login.tailscale.com/admin/settings/keys
# these will expire after 90 days
# be sure to enable reusable and ephemeral
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci

- name: Configure SSH
run: |
Expand All @@ -83,7 +82,7 @@ jobs:
chmod 600 ~/.ssh/ssh.key
cat >>~/.ssh/config <<END
Host services
HostName $(tailscale ip -6 services)
HostName $(tailscale ip -4 services)
User $SSH_USER
IdentityFile ~/.ssh/ssh.key
StrictHostKeyChecking no
Expand Down

0 comments on commit 3a75c69

Please sign in to comment.