diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d0195c93c1ca2f0d81b84cc05842a8328f2fb70f..a14c2b900cdfb801f0602b1f1ee233157762e7dc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -87,7 +87,7 @@ full-deploy-testing: - pip install python-openstackclient - OLD_ID=`openstack server show $TESTING_NAME -f value -c id` && server_exists=true || echo "No testing server found. It might be a first time deployment" - if [ "$server_exists" = true ] ; then - openstack server set --name $OLD_TEST_NAME $OLD_ID + openstack server set --name $OLD_TEST_NAME $OLD_ID; fi - INSTANCE_ID=`openstack server create -f value -c id --prefix IMAGE_ --flavor m4 --image 149a65b5-aeb8-499f-aaa6-ec966bd28dd6 --user-data scripts/cloudinit.yml --security-group ssh --security-group airflows --security-group www --security-group https $TESTING_NAME` - while [ "`openstack server show $INSTANCE_ID -c addresses -f value`" = "{}" ]; do sleep 5; done # wait until an address is available to attach the floating ip