Skip to content

Commit 75c0392

Browse files
committed
feat: add Tailscale version and ping inputs to Helmfile deployment workflow
This update introduces two new optional inputs for the Helmfile deployment workflow: `tailscaleVersion` and `tailscalePing`. The default values are set to `1.98.9` for the Tailscale version and a specified DNS name for the ping target. Additionally, the hardcoded version in the deployment job has been replaced with the new input variable. Unused code related to waiting for Tailscale readiness has been commented out for clarity.
1 parent 2675e8d commit 75c0392

1 file changed

Lines changed: 20 additions & 13 deletions

File tree

.github/workflows/deploy_helmfile.yaml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,17 @@ on:
8888
required: false
8989
type: string
9090
default: v3.9.6
91+
tailscaleVersion:
92+
description: Tailscale version
93+
required: false
94+
type: string
95+
default: 1.98.9
96+
tailscalePing:
97+
description: Tailscale ping target
98+
required: false
99+
type: string
100+
# Production EKS cluster DNS nameto test the VPN connection
101+
default: BA6D21AB896DE795C7BF29050D03C3A8.gr7.us-east-1.eks.amazonaws.com
91102

92103

93104
secrets:
@@ -243,20 +254,16 @@ jobs:
243254
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
244255
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
245256
tags: tag:ci
246-
version: 1.76.1
257+
version: ${{ inputs.tailscaleVersion }}
258+
ping: ${{ inputs.tailscalePing }}
247259

248-
# Bug https://github.com/tailscale/github-action/issues/107
249-
#- name: Tailscale sleep workaround
250-
# run: |
251-
# sleep 10
252-
253-
- name: wait until Tailscale is ready
254-
if: inputs.enableVpn == 'true'
255-
run: |
256-
for i in {1..20}; do
257-
kubectl cluster-info --request-timeout 3 && break
258-
echo "Waiting for Tailscale to be ready..."
259-
done
260+
# - name: wait until Tailscale is ready
261+
# if: inputs.enableVpn == 'true'
262+
# run: |
263+
# for i in {1..20}; do
264+
# kubectl cluster-info --request-timeout 3 && break
265+
# echo "Waiting for Tailscale to be ready..."
266+
# done
260267

261268
- name: helmfile diff
262269
if: inputs.helmfileCommand != 'destroy'

0 commit comments

Comments
 (0)