Skip to content
Snippets Groups Projects
Commit 34455684 authored by František Dvořák's avatar František Dvořák
Browse files

gitLab CI: always delete floating IP

parent 2cd65b00
No related branches found
No related tags found
No related merge requests found
Pipeline #696 passed
......@@ -43,6 +43,8 @@ test-single:
# https://github.com/terraform-provider-openstack/terraform-provider-openstack/issues/1160
- touch ./secure.yml
- ip=`openstack floating ip create -c floating_ip_address -f value public-muni-147-251-21-GROUP`
after_script: &after
- openstack floating ip delete $ip
cache:
when: always
key: single
......@@ -56,7 +58,6 @@ test-single:
- ssh-add ./ssh-key.terra1.txt
- ssh -o PreferredAuthentications=publickey deployadm@$ip "sudo -u debian sh -c 'cd; ~deployadm/terraform/image/tests/run-tests.sh'"
- terraform destroy $args
- openstack floating ip delete $ip
rules:
- if: '$JOB =~ /all|test-single/'
artifacts: &artifacts
......@@ -67,6 +68,7 @@ test-cluster:
stage: test
variables: *tfvars
before_script: *before
after_script: *after
cache:
when: always
key: cluster
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment