mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-23 08:20:15 -05:00
No custom working directory
This commit is contained in:
parent
fb0563ad03
commit
1926133b11
4
.github/actions/e2e_emergency_ssh/action.yml
vendored
4
.github/actions/e2e_emergency_ssh/action.yml
vendored
@ -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')"
|
||||
|
Loading…
x
Reference in New Issue
Block a user