diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 917580e..5225b89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} @@ -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