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 20
20
21
21
function check_lab_vm_connections() {
22
22
echo " Checking VM connections..."
23
+ cat ssh_list.txt
23
24
while IFS= read -r line; do
24
25
ip=$( echo " $line " | awk ' {print $2}' )
25
26
name=$( echo " $line " | awk ' {print $3}' )
Original file line number Diff line number Diff line change @@ -186,17 +186,6 @@ jobs:
186
186
sed -i 's/"//g' registry.txt
187
187
cat registry.txt
188
188
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 }}
200
189
201
190
- name : Run tests on Lab VMs (Test)
202
191
if : ${{ inputs.deployment_type == 'Test' }}
@@ -225,11 +214,16 @@ jobs:
225
214
# with:
226
215
# name: ${{ inputs.deployment_type }}-terraform-artifacts
227
216
217
+ - name : Sleep to debug (cancel workflow to clean up)
218
+ if : ${{ inputs.deployment_type == 'Test' }}
219
+ run : |
220
+ sleep 7h
221
+
228
222
- name : Pause for debugging (cancel workflow to clean up)
229
223
if : always() && ${{ inputs.debug_mode == true }} && ${{ inputs.deployment_type == 'Test' }}
230
224
run : |
231
225
echo "Pausing for 7d for debugging... cancel manually to proceed."
232
- if true; then sleep 7d; done
226
+ sleep 7d
233
227
234
228
- name : Destroy Failed or Test Lab VMs
235
229
run : terraform destroy -auto-approve
You can’t perform that action at this time.
0 commit comments