Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
scrungus committed Apr 28, 2023
1 parent f026dce commit 054369f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/stackhpc-capi-all-in-one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<EOF" >> $GITHUB_OUTPUT
echo "$KUBECONFIG" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 054369f

Please sign in to comment.