Skip to content
Snippets Groups Projects
Commit ac40bcbf authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Preserve old knightly instance

parent 7e9e1e51
No related branches found
No related tags found
1 merge request!10Add gitlab ci into project
......@@ -110,7 +110,11 @@ deploy_knightly:
tags:
- build
script:
- if [ ! -z $OLD_INSTANCE_ID ]; then openstack server delete $OLD_INSTANCE_ID; fi
- |
if [ ! -z $OLD_INSTANCE_ID ]; then
openstack server remove floating ip $OLD_INSTANCE_ID $CAMPUS_IP
openstack server remove floating ip $OLD_INSTANCE_ID $CHEAHA_IP
fi
- |
if [ ! -z $NEW_INSTANCE_ID ]; then
openstack server add floating ip $NEW_INSTANCE_ID $CAMPUS_IP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment