Skip to content

Commit 1c3ce4e

Browse files
authored
chore: enable tailscale in reusable workflow for helmfile deployment (#123)
1 parent 7374596 commit 1c3ce4e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/deploy_helmfile.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ on:
5858
required: false
5959
type: string
6060
default: apply --suppress-secrets
61+
enableVpn:
62+
description: Enable VPN connection
63+
required: false
64+
default: true
6165

6266
secrets:
6367
awsAccessKeyId:
@@ -176,6 +180,14 @@ jobs:
176180
- name: setup kubeconfig
177181
run: aws eks update-kubeconfig --name ${{ inputs.eksClusterName }} $OPTIONAL_PARAMS
178182

183+
- name: Tailscale VPN
184+
uses: tailscale/github-action@v2
185+
if: inputs.enableVpn
186+
with:
187+
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
188+
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
189+
tags: tag:ci
190+
179191
- name: helmfile ${{ inputs.helmfileCommand }}
180192
run: |
181193
export $(echo ${{ inputs.envVariables }})

0 commit comments

Comments
 (0)