From e445d745ef75cc13435802af9bdced6bf10423f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Nesveda?= Date: Tue, 3 Dec 2024 14:28:41 +0100 Subject: [PATCH] feat: Wait until Tailscale is ready in the deploy workflow (#160) --- .github/workflows/deploy_helmfile.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/deploy_helmfile.yaml b/.github/workflows/deploy_helmfile.yaml index 1c19a7f..f36757b 100644 --- a/.github/workflows/deploy_helmfile.yaml +++ b/.github/workflows/deploy_helmfile.yaml @@ -201,6 +201,14 @@ jobs: - name: setup kubeconfig run: aws eks update-kubeconfig --name ${{ inputs.eksClusterName }} $OPTIONAL_PARAMS + - name: wait until Tailscale is ready + if: inputs.enableVpn == 'true' + run: | + for i in {1..20}; do + kubectl cluster-info --request-timeout 3 && break + echo "Waiting for Tailscale to be ready..." + done + - name: helmfile ${{ inputs.helmfileCommand }} run: | export $(echo ${{ inputs.envVariables }})