Commit 7c317526 authored by David Mendez's avatar David Mendez

Add step to prepare congig in hx

parent 40bb04af
Pipeline #93278 failed with stages
in 5 minutes and 38 seconds
......@@ -17,7 +17,6 @@ variables:
# Config prod_hx
CONFIG_PROD_HX_FILE_PATH: ${CONFIGS_FOLDER}/prod_hx.yml
CONFIG_GUNICORN_PROD_HX_FILE_PATH: ${CONFIGS_FOLDER}/prod_hx.gunicorn.config.py
INGRESS_PROD_HX_FILE_PATH: ${CONFIGS_FOLDER}/ingress-prod_hx.yml
AUTOSCALER_PROD_HX_FILE_PATH: ${CONFIGS_FOLDER}/autoscaler-prod_hx.yml
# Config prod_hh
CONFIG_PROD_HH_FILE_PATH: ${CONFIGS_FOLDER}/prod_hh.yml
......@@ -36,8 +35,8 @@ stages:
- test_and_qa
- prepare_config_staging
- deploy_to_staging
# - test_staging
# - prepare_config_hx
- test_staging
- prepare_config_hx
# - deploy_to_prod_hx
# - test_prod_hx
# - prepare_config_hh
......@@ -187,48 +186,47 @@ deploy_to_staging:
- kubectl get pods -n ${CHEMBL_NS_STAGING}
- cat ${AUTOSCALER_STAGING_FILE_PATH}
- kubectl apply -n ${CHEMBL_NS_STAGING} -f ${AUTOSCALER_STAGING_FILE_PATH}
##
### ----------------------------------------------------------------------------------------------------------------------
### Test staging
### ----------------------------------------------------------------------------------------------------------------------
#functional_tests:
# stage: test_staging
# image:
# name: $SERVER_IMAGE_TAG
# entrypoint: [""]
# only:
# - staging
# except:
# - schedules
# environment:
# name: staging
# url: ${SERVER_URL_STAGING}
# script:
# - set -x
# - functional_tests/run_functional_tests.py ${SERVER_URL_STAGING} https://wwwdev.ebi.ac.uk/chembl/interface_api/delayed_jobs
#
### ----------------------------------------------------------------------------------------------------------------------
### Deployment to prod hx
### ----------------------------------------------------------------------------------------------------------------------
#prepare_config_prod_hx:
# stage: prepare_config_hx
# image:
# name: alpine/git
# entrypoint: ["/bin/sh", "-c"]
# only:
# - master
# except:
# - schedules
# script:
# - rm -rf ${CONFIGS_FOLDER} || true
# - mkdir -p ${CONFIGS_FOLDER}
# - git clone https://${CONFIG_DEPLOY_GITLAB_USERNAME}:${CONFIG_DEPLOY_GITLAB_TOKEN}@${CONFIGURATIONS_REPO} ${CONFIGS_FOLDER}
# artifacts:
# paths:
# - ${CONFIG_PROD_HX_FILE_PATH}
# - ${CONFIG_GUNICORN_PROD_HX_FILE_PATH}
# - ${INGRESS_PROD_HX_FILE_PATH}
# - ${AUTOSCALER_PROD_HX_FILE_PATH}
## ----------------------------------------------------------------------------------------------------------------------
## Test staging
## ----------------------------------------------------------------------------------------------------------------------
functional_tests:
stage: test_staging
image:
name: $SERVER_IMAGE_TAG
entrypoint: [""]
only:
- staging
except:
- schedules
environment:
name: staging
url: ${SERVER_URL_STAGING}
script:
- set -x
- functional_tests/run_functional_tests.py ${SERVER_URL_STAGING}
## ----------------------------------------------------------------------------------------------------------------------
## Deployment to prod hx
## ----------------------------------------------------------------------------------------------------------------------
prepare_config_prod_hx:
stage: prepare_config_hx
image:
name: alpine/git
entrypoint: ["/bin/sh", "-c"]
only:
- master
except:
- schedules
script:
- rm -rf ${CONFIGS_FOLDER} || true
- mkdir -p ${CONFIGS_FOLDER}
- git clone https://${CONFIG_DEPLOY_GITLAB_USERNAME}:${CONFIG_DEPLOY_GITLAB_TOKEN}@${CONFIGURATIONS_REPO} ${CONFIGS_FOLDER}
artifacts:
paths:
- ${CONFIG_PROD_HX_FILE_PATH}
- ${CONFIG_GUNICORN_PROD_HX_FILE_PATH}
- ${AUTOSCALER_PROD_HX_FILE_PATH}
#
#deploy_to_prod_hx:
# stage: deploy_to_prod_hx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment