Skip to content

Commit

Permalink
ci: output the kubeconfig from terragrunt
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Nov 10, 2024
1 parent 861a21d commit 3fbf50e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
KUBECONFIG: ${{ github.workspace }}/.kubeconfig
TF_TOKEN_app_terraform_io: ${{ secrets.TERRAFORM_CLOUD_SECRET }}
TF_VAR_hcloud_token: ${{ secrets.HCLOUD_TOKEN }}
TF_VAR_infisical_client_id: ${{ secrets.INFISICAL_CLIENT_ID }}
Expand Down Expand Up @@ -105,11 +106,20 @@ jobs:

- name: Deploy
uses: gruntwork-io/terragrunt-action@v2
id: terragrunt
with:
tf_version: ${{ env.TF_VERSION }}
tg_version: ${{ env.TG_VERSION }}
tg_dir: ${{ env.WORKING_DIR }}
tg_command: run-all apply

- name: debug
run: |
echo ${{ steps.outputs.terragrunt.tg_action_output.kubeconfig }} > $KUBECONFIG
echo $KUBECONFIG
ls $KUBECONFIG
kubectl get nodes
- name: ArgoCD registry
run: kubectl apply -f registry/clusters/prod/registry.yaml

0 comments on commit 3fbf50e

Please sign in to comment.