-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,31 @@ | ||
# Tailscale-ssh-deploy | ||
deploy files with a custom commands using Tailscale SSH | ||
# tailscale-ssh-deploy | ||
deploy your git project without having to expose your server thanks to Tailscale SSH! | ||
|
||
|
||
## Example | ||
|
||
Here is an example of how to use the action | ||
|
||
```yaml | ||
- name: Setup Tailscale | ||
uses: tailscale/github-action@v2 | ||
with: | ||
hostname: Github-actions | ||
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} | ||
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} | ||
tags: tag:ci | ||
|
||
- name: Start Deployment | ||
uses: FarisZR/tailscale-ssh-deploy@v1 | ||
with: | ||
remote_host: root@100.107.201.124 | ||
directory: generated | ||
remote_destination: /root/www | ||
post_upload_command: echo thats it | ||
``` | ||
## Action Inputs | ||
- `remote_host` Specify Remote host using their tailscale IPv4 address. The input value must be in this format (user@host). **required** | ||
- `directory` Directory to upload **required** | ||
- `remote_destination` The destination path on the remote host **required** | ||
- `post_upload_command` A command to run on the remote host after the upload is finished **optional** |