Skip to content
Snippets Groups Projects
Commit 98da82e6 authored by Jérôme Le Bras's avatar Jérôme Le Bras
Browse files

Deploy rct cloud

parent cec13826
No related branches found
No related tags found
No related merge requests found
......@@ -68,10 +68,9 @@ deploy_dev_cloud:
stage: deploy_dev
script:
- COMPONENT_NAME=portal-backend
- ZIP_NAME=$COMPONENT_NAME.zip
- *inject-private-key
- *get-security-config-repo
- mv $ZIP_NAME ./config/ansible
- mv $COMPONENT_NAME.zip ./config/ansible
- 'ansible-playbook ./config/ansible/deploy.yml
--inventory-file=./config/env-file
--extra-vars "gitlab_api_token=$GITLAB_API_TOKEN component_name=$COMPONENT_NAME KEYCLOAK_PASSWORD=$KEYCLOAK_PWD_dev_cloud"'
......@@ -85,3 +84,25 @@ deploy_dev_cloud:
only:
- master
deploy_rct_cloud:
image: $CI_REGISTRY/ideafactory/clientportal/general/ansible:latest
stage: deploy_rct
script:
- COMPONENT_NAME=portal-backend
- *inject-private-key
- *get-security-config-repo
- mv $COMPONENT_NAME.zip ./config/ansible
- 'ansible-playbook ./config/ansible/deploy.yml
--inventory-file=./config/env-file
--extra-vars "gitlab_api_token=$GITLAB_API_TOKEN component_name=$COMPONENT_NAME KEYCLOAK_PASSWORD=$KEYCLOAK_PWD_rct_cloud"'
dependencies:
- zip
environment:
name: recette_cloud
allow_failure: true
tags:
- docker
only:
- master
when: manual
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment