No custom working directory

This commit is contained in:
miampf 2025-02-18 11:22:39 +01:00
parent fb0563ad03
commit 1926133b11
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C

View File

@ -14,16 +14,13 @@ runs:
steps:
- name: Test emergency ssh
shell: bash
working-directory: e2e/emergency-ssh
env:
KUBECONFIG: ${{ inputs.kubeconfig }}
run: |
# Activate emergency ssh access to the cluster
pushd "${{ inputs.workspace }}/constellation-terraform"
echo "emergency_ssh = true" >> terraform.tfvars
terraform apply -auto-approve
lb="$(terraform output -raw loadbalancer_address)"
popd
# write ssh config
cat > ssh_config <<EOF
@ -39,7 +36,6 @@ runs:
EOF
# generate and try keypair
cp "${{ inputs.workspace }}/constellation-mastersecret.json" .
ssh-keygen -t ecdsa -q -N "" -f ./access-key
constellation ssh --debug --key ./access-key.pub
internalIPs="$(kubectl get nodes -o=jsonpath='{.items[*].status.addresses}' | jq -r '.[] | select(.type == "InternalIP") | .address')"