https://github.com/jaypyles/tailscale-ssh
Github Action to connect runner to tailnet, ssh into a machine, run a command, and exit.
https://github.com/jaypyles/tailscale-ssh
Last synced: about 1 year ago
JSON representation
Github Action to connect runner to tailnet, ssh into a machine, run a command, and exit.
- Host: GitHub
- URL: https://github.com/jaypyles/tailscale-ssh
- Owner: jaypyles
- Created: 2024-09-06T22:06:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-07T00:00:27.000Z (almost 2 years ago)
- Last Synced: 2025-01-27T23:36:32.498Z (over 1 year ago)
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tailscale-ssh
Github Action to connect runner to tailnet, ssh into a machine, run a command, and exit. Tailnet node cleaned up on exit.
Example usage:
```yaml
- name: Deploy
uses: jaypyles/tailscale-ssh@v1.0.0
with:
ts-oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
ts-oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
host: ${{ secrets.HOST }} # optional, default: 22
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: ${{ secrets.DEPLOY_COMMAND }}
tag: ${{ secrets.TAG }} # optional, default: ci
```
Must create a tag in your tailscale ACL file.