Skip to content
Snippets Groups Projects
Commit 405ee2a1 authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

Update file .gitlab-ci.yml

parent 2818a776
No related branches found
No related tags found
1 merge request!91WIP: Create pipeline job for deploy ood proxy node
Pipeline #11380 failed
......@@ -196,6 +196,42 @@ build_gpu_image:
when: never
- when: always
# New job for manual OOD proxy node deployment
start_ood_proxy:
stage: deploy
environment:
name: knightly
tags:
- build
variables:
PROXY_INSTANCE_NAME: "ood-proxy-${CI_COMMIT_REF_SLUG}"
PROXY_FLAVOR: "m1.small"
script:
- *update_ansible_repo
- *get_ansible_files
- |
openstack server create \
--image $BUILT_OOD_IMAGE_ID \
--flavor $PROXY_FLAVOR \
--network $OOD_INSTANCE_NETWORK \
--security-group ood-https-ports \
--security-group allow-ssh \
--wait \
$PROXY_INSTANCE_NAME
- export PROXY_IP=$(openstack server show $PROXY_INSTANCE_NAME -f value -c addresses | cut -d'=' -f2)
- echo "OOD Proxy started with IP: $PROXY_IP"
- |
ansible-playbook -i "$PROXY_IP," \
-u centos \
--private-key $SSH_PRIV_KEY \
-e "ood_portal_generator_ssl_cert=/etc/pki/tls/certs/ood.crt" \
-e "ood_portal_generator_ssl_key=/etc/pki/tls/private/ood.key" \
CRI_XCBC/ood.yml
when: manual
rules:
- if: $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"
build_ood_image:
stage: build
tags:
......
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