File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed
Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 2020
2121function check_lab_vm_connections() {
2222 echo " Checking VM connections..."
23+ cat ssh_list.txt
2324 while IFS= read -r line; do
2425 ip=$( echo " $line " | awk ' {print $2}' )
2526 name=$( echo " $line " | awk ' {print $3}' )
Original file line number Diff line number Diff line change @@ -186,17 +186,6 @@ jobs:
186186 sed -i 's/"//g' registry.txt
187187 cat registry.txt
188188
189- # - name: Sleep to debug (cancel workflow to clean up)
190- # if: ${{ inputs.deployment_type == 'Test' }}
191- # run: |
192- # # ssh rocky@$(cat registry.txt) -i default.pem -o StrictHostKeyChecking=no
193- # # echo '${BAS_PWD}' | sudo passwd --stdin ${LAB_IMAGE_USER}
194- # # sudo echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config.d/50-cloud-init.conf
195- # # sudo systemctl restart sshd
196- # sleep 7h
197- # env:
198- # LAB_IMAGE_USER: ${{ inputs.os_image == 'Ubuntu' && 'ubuntu' || inputs.os_image == 'Rocky9' && 'rocky' }}
199- # BAS_PWD: ${{ inputs.bas_pwd == '' && secrets.BASTION_TEST_PASSWORD || inputs.bas_pwd }}
200189
201190 - name : Run tests on Lab VMs (Test)
202191 if : ${{ inputs.deployment_type == 'Test' }}
@@ -225,11 +214,16 @@ jobs:
225214 # with:
226215 # name: ${{ inputs.deployment_type }}-terraform-artifacts
227216
217+ - name : Sleep to debug (cancel workflow to clean up)
218+ if : ${{ inputs.deployment_type == 'Test' }}
219+ run : |
220+ sleep 7h
221+
228222 - name : Pause for debugging (cancel workflow to clean up)
229223 if : always() && ${{ inputs.debug_mode == true }} && ${{ inputs.deployment_type == 'Test' }}
230224 run : |
231225 echo "Pausing for 7d for debugging... cancel manually to proceed."
232- if true; then sleep 7d; done
226+ sleep 7d
233227
234228 - name : Destroy Failed or Test Lab VMs
235229 run : terraform destroy -auto-approve
You can’t perform that action at this time.
0 commit comments