From 5b420629dfb656b715ceac451de0fe9d542d2d46 Mon Sep 17 00:00:00 2001 From: Kamil Stus Date: Thu, 5 Dec 2024 07:33:17 +0100 Subject: [PATCH] fix: Tailscale steps order --- .github/workflows/deploy_helmfile.yaml | 28 +++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy_helmfile.yaml b/.github/workflows/deploy_helmfile.yaml index f36757b..5648eef 100644 --- a/.github/workflows/deploy_helmfile.yaml +++ b/.github/workflows/deploy_helmfile.yaml @@ -94,20 +94,6 @@ jobs: - name: clone repository uses: actions/checkout@v4 - - name: Tailscale VPN - uses: tailscale/github-action@v2 - if: inputs.enableVpn == 'true' - with: - oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} - oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} - tags: tag:ci - version: 1.76.1 - - # Bug https://github.com/tailscale/github-action/issues/107 - #- name: Tailscale sleep workaround - # run: | - # sleep 10 - - name: Send notification to slack if: inputs.slackChannelId != '' uses: slackapi/slack-github-action@v1.26.0 @@ -201,6 +187,20 @@ jobs: - name: setup kubeconfig run: aws eks update-kubeconfig --name ${{ inputs.eksClusterName }} $OPTIONAL_PARAMS + - name: Tailscale VPN + uses: tailscale/github-action@v2 + if: inputs.enableVpn == 'true' + with: + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + tags: tag:ci + version: 1.76.1 + + # Bug https://github.com/tailscale/github-action/issues/107 + #- name: Tailscale sleep workaround + # run: | + # sleep 10 + - name: wait until Tailscale is ready if: inputs.enableVpn == 'true' run: |