From 054369f527e491fd2bd7e7265960054ad3195488 Mon Sep 17 00:00:00 2001 From: scrungus Date: Fri, 28 Apr 2023 13:04:24 +0000 Subject: [PATCH] debug --- .github/workflows/stackhpc-capi-all-in-one.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stackhpc-capi-all-in-one.yml b/.github/workflows/stackhpc-capi-all-in-one.yml index 23cadf2a0..34136e4a6 100644 --- a/.github/workflows/stackhpc-capi-all-in-one.yml +++ b/.github/workflows/stackhpc-capi-all-in-one.yml @@ -314,8 +314,10 @@ jobs: - name: Get kubeconfig run: | pip install ansible - IP=$(ansible localhost -m debug -a "var=access_ip_v4.value" -e @etc/kayobe/environments/$KAYOBE_ENVIRONMENT/tf-outputs.yml | grep access_ip_v4.value | awk '{print $2}' | tr -d \''"\') - KUBECONFIG=$(ssh $SSH_USERNAME@$IP -i terraform/aio/id_rsa 'cat ~/.kube/config') + export IP=$(ansible localhost -m debug -a "var=access_ip_v4.value" -e @etc/kayobe/environments/$KAYOBE_ENVIRONMENT/tf-outputs.yml | grep access_ip_v4.value | awk '{print $2}' | tr -d \''"\') + echo $IP + echo $SSH_USERNAME + export KUBECONFIG=$(ssh $SSH_USERNAME@$IP -i $KAYOBE_AUTOMATION_SSH_PRIVATE_KEY 'cat ~/.kube/config') echo "kubeconfig<> $GITHUB_OUTPUT echo "$KUBECONFIG" >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT