Skip to content

Commit

Permalink
Allow overriding tailscaled arguments (#64)
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Schridde <dennis@metabase.com>
  • Loading branch information
devurandom committed Jun 28, 2023
1 parent 8b804aa commit 69556f4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ inputs:
description: 'Optional additional arguments to `tailscale up`'
required: false
default: ''
tailscaled-args:
description: 'Optional additional arguments to `tailscaled`'
required: false
default: ''
hostname:
description: 'Fixed hostname to use.'
required: false
Expand Down Expand Up @@ -56,8 +60,10 @@ runs:
sudo mv "${TSPATH}/tailscale" "${TSPATH}/tailscaled" /usr/bin
- name: Start Tailscale Daemon
shell: bash
env:
ADDITIONAL_DAEMON_ARGS: ${{ inputs.tailscaled-args }}
run: |
sudo -E tailscaled 2>~/tailscaled.log &
sudo -E tailscaled ${ADDITIONAL_DAEMON_ARGS} 2>~/tailscaled.log &
# And check that tailscaled came up. The CLI will block for a bit waiting
# for it. And --json will make it exit with status 0 even if we're logged
# out (as we will be). Without --json it returns an error if we're not up.
Expand Down

0 comments on commit 69556f4

Please sign in to comment.