Skip to content

Commit

Permalink
chore: enable tailscale in reusable workflow for helmfile deployment (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmrtvy authored Aug 21, 2024
1 parent 7374596 commit 1c3ce4e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy_helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ on:
required: false
type: string
default: apply --suppress-secrets
enableVpn:
description: Enable VPN connection
required: false
default: true

secrets:
awsAccessKeyId:
Expand Down Expand Up @@ -176,6 +180,14 @@ 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
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci

- name: helmfile ${{ inputs.helmfileCommand }}
run: |
export $(echo ${{ inputs.envVariables }})
Expand Down

0 comments on commit 1c3ce4e

Please sign in to comment.