From 6bf91ad5c19d8f2f60b93d939ec2f56f54194c99 Mon Sep 17 00:00:00 2001 From: Maria Petrova <m.petrova@fz-juelich.de> Date: Fri, 25 Jun 2021 12:57:33 +0200 Subject: [PATCH] mark next steps for CD --- .gitlab-ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c691859..242bf7c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -53,8 +53,13 @@ deploy: - pip install python-openstackclient - openstack image list - openstack server create --flavor s1 --image 149a65b5-aeb8-499f-aaa6-ec966bd28dd6 pipeline-inst - - docker build --no-cache=true --pull -f ./apiserver/Dockerfile . - - docker run + # - reassign floating ip + # - login on the new instance pipeline-inst + - sudo docker network create net #net is the docker internal network.. put it in a Variable? + - sudo docker-compose up -d + # - docker build --no-cache=true --pull -f ./apiserver/Dockerfile -t api-test . #pull from $CI_REGISTRY + # - sudo docker run --name api-test-cloud --network net -e VIRTUAL_HOST="zam10028.zam.kfa-juelich.de" -e LETSENCRYPT_HOST="zam10028.zam.kfa-juelich.de" -d api-test + # - openstack server destroy pipeline-inst #old # This should be an automatic push of the docker image into gitLab container repository -- GitLab