Commit ec60141a authored by nanahira's avatar nanahira

change shell

parent d6558775
Pipeline #309 passed with stages
in 6 minutes and 21 seconds
...@@ -18,3 +18,4 @@ ENV VC_TEMPLATE runner-template-debian ...@@ -18,3 +18,4 @@ ENV VC_TEMPLATE runner-template-debian
ENV VC_CPUS 2 ENV VC_CPUS 2
ENV VC_MEMS 4096 ENV VC_MEMS 4096
ENV VC_SSH_USER root ENV VC_SSH_USER root
ENV VC_SHELL /bin/bash
...@@ -7,7 +7,7 @@ source ${currentDir}/base # Get variables from base script. ...@@ -7,7 +7,7 @@ source ${currentDir}/base # Get variables from base script.
VM_IP=$(_get_vm_ip) VM_IP=$(_get_vm_ip)
ssh -i "${currentDir}/../ssh/id_rsa" -o StrictHostKeyChecking=no "$VC_SSH_USER@$VM_IP" /bin/bash < "${1}" ssh -i "${currentDir}/../ssh/id_rsa" -o StrictHostKeyChecking=no "$VC_SSH_USER@$VM_IP" "$VC_SHELL" < "${1}"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
# Exit using the variable, to make the build as failure in GitLab # Exit using the variable, to make the build as failure in GitLab
# CI. # CI.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment