You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Subsequent steps in the Action can then access nodes in your Tailnet.
@@ -29,6 +29,28 @@ be automatically removed by the coordination server a short time after they
29
29
finish their run. The nodes are also [marked Preapproved](https://tailscale.com/kb/1085/auth-keys/)
30
30
on tailnets which use [Device Approval](https://tailscale.com/kb/1099/device-approval/)
31
31
32
+
## Eventual consistency
33
+
34
+
Propagating information about new peers - such as the node created by this action - across your tailnet
35
+
is an eventually consistent process, and brief delays are expected. Until the GitHub workflow node
36
+
becomes visible, other peers will not accept connections. It is best to verify connectivity to the
37
+
intended nodes before executing steps that rely on them.
38
+
39
+
You can do this by adding a list of targets to the action configuration:
40
+
41
+
```yaml
42
+
- name: Tailscale
43
+
uses: tailscale/github-action@v3
44
+
with:
45
+
targets: 100.x.y.z,my-machine.my-tailnet.ts.net
46
+
```
47
+
48
+
or with the [tailscale ping](https://tailscale.com/kb/1080/cli#ping) command if you do not know the targets at the time of installing Tailscale in the workflow:
49
+
50
+
```bash
51
+
tailscale ping my-target.my-tailnet.ts.net
52
+
```
53
+
32
54
## Tailnet Lock
33
55
34
56
If you are using this Action in a [Tailnet
@@ -42,37 +64,37 @@ Lock](https://tailscale.com/kb/1226/tailnet-lock) enabled network, you need to:
42
64
client to store the Tailnet Key Authority data in.
43
65
44
66
```yaml
45
-
- name: Tailscale
46
-
uses: tailscale/github-action@v3
47
-
with:
48
-
authkey: tskey-auth-...
49
-
statedir: /tmp/tailscale-state/
67
+
- name: Tailscale
68
+
uses: tailscale/github-action@v3
69
+
with:
70
+
authkey: tskey-auth-...
71
+
statedir: /tmp/tailscale-state/
50
72
```
51
73
52
74
## Defining Tailscale version
53
75
54
76
Which Tailscale version to use can be set like this:
Copy file name to clipboardExpand all lines: action.yml
+41-2Lines changed: 41 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,10 @@ inputs:
56
56
description: 'Whether to cache the Tailscale binaries (Linux/macOS) or installer (Windows)'
57
57
required: false
58
58
default: 'false'
59
+
targets:
60
+
description: 'Comma separated list of targets (Tailscale IP addresses or machine names if MagicDNS is enabled on the tailnet) to `tailscale ping` for connectivity verification after `tailscale up` completes'
0 commit comments