这是indexloc提供的服务,不要输入任何密码
Skip to content

How to get Dokku deploys to work using a Tailscale IP address via GitHub Actions? #7464

Answered by bakatz
bakatz asked this question in Q&A
Discussion options

You must be logged in to vote

Answering my own question: the usual Dokku GitHub Actions step is not compatible with Tailscale because it assumes "sshcommand" will run commands upon a new ssh session being started. Unfortunately, sshcommand works with authorized_keys which Tailscale completely bypasses due to the way it works.

As a workaround, just run Dokku commands manually. You will need to:

  1. Initialize Tailscale at the top of your actions file and make sure SSH keyscan runs:
    - name: Set up Tailscale
      uses: tailscale/github-action@v3
      with:
        oauth-client-id: ${{ secrets.TAILSCALE_OAUTH_CLIENT_ID }}
        oauth-secret: ${{ secrets.TAILSCALE_OAUTH_SECRET }}
        tags: tag:ci

    - name: Ini…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@josegonzalez
Comment options

@bakatz
Comment options

@josegonzalez
Comment options

@bakatz
Comment options

@bakatz
Comment options

Answer selected by bakatz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants