Skip to content

Commit e445d74

Browse files
authored
feat: Wait until Tailscale is ready in the deploy workflow (#160)
1 parent b3f3357 commit e445d74

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/deploy_helmfile.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,14 @@ jobs:
201201
- name: setup kubeconfig
202202
run: aws eks update-kubeconfig --name ${{ inputs.eksClusterName }} $OPTIONAL_PARAMS
203203

204+
- name: wait until Tailscale is ready
205+
if: inputs.enableVpn == 'true'
206+
run: |
207+
for i in {1..20}; do
208+
kubectl cluster-info --request-timeout 3 && break
209+
echo "Waiting for Tailscale to be ready..."
210+
done
211+
204212
- name: helmfile ${{ inputs.helmfileCommand }}
205213
run: |
206214
export $(echo ${{ inputs.envVariables }})

0 commit comments

Comments
 (0)