-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use this orb to install the latest tailscale instead of this hard cod…
…ed old one
- Loading branch information
Showing
1 changed file
with
4 additions
and
16 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,5 +1,8 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
tailscale: orbiously/[email protected] | ||
|
||
commands: # a reusable command with parameters | ||
setup-sccache: | ||
steps: | ||
|
@@ -133,22 +136,7 @@ jobs: | |
- add_ssh_keys | ||
- attach_workspace: | ||
at: target | ||
# Copied from | ||
# Changes from source: | ||
# - removed `sudo` usage in mv since its not needed/in the container | ||
- run: | ||
name: "Download tailscale if not installed" | ||
command: | | ||
if ! command -v tailscale --version >/dev/null 2>&1; then | ||
echo "Tailscale is not installed, installing..." | ||
wget https://pkgs.tailscale.com/stable/tailscale_1.24.2_amd64.tgz | ||
tar -xzf tailscale_1.24.2_amd64.tgz | ||
rm tailscale_1.24.2_amd64.tgz | ||
TSPATH=tailscale_1.24.2_amd64 | ||
mv "${TSPATH}/tailscale" "${TSPATH}/tailscaled" /usr/bin | ||
else | ||
echo "Tailscale is already installed" | ||
fi | ||
- tailscale/install | ||
- run: | ||
name: "Run tailscale" | ||
background: true | ||
|