diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2e006079c25281a05b032022c236805786936f1f..e75043bb7636c6ab7a255678bf28b352fa6343f2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,9 +14,12 @@ variables: CONFIGS_FOLDER: run_config # Config staging ENV_STAGING_FILE_PATH: ${CONFIGS_FOLDER}/staging/.env + AUTOSCALER_STAGING_FILE_PATH: ${CONFIGS_FOLDER}/staging/autoscaler.yml # INGRESS_STAGING_FILE_PATH: ${CONFIGS_FOLDER}/staging/ingress.yml # Config prod hx ENV_PROD_HX_FILE_PATH: ${CONFIGS_FOLDER}/prod_hx/.env + AUTOSCALER_PROD_HX_FILE_PATH: ${CONFIGS_FOLDER}/prod_hx/autoscaler.yml + AUTOSCALER_PROD_HL_FILE_PATH: ${CONFIGS_FOLDER}/prod_hh/autoscaler.yml # Config prod hx ENV_PROD_HH_FILE_PATH: ${CONFIGS_FOLDER}/prod_hh/.env @@ -192,8 +195,8 @@ deploy_to_staging: - cat k8s-deployment.yaml - kubectl apply -n ${CHEMBL_NS_STAGING} -f k8s-deployment.yaml - kubectl get pods -n ${CHEMBL_NS_STAGING} - - + - cat ${AUTOSCALER_STAGING_FILE_PATH} + - kubectl apply -n ${CHEMBL_NS_STAGING} -f ${AUTOSCALER_STAGING_FILE_PATH} # ---------------------------------------------------------------------------------------------------------------------- @@ -230,6 +233,9 @@ deploy_to_prod_hx: - cat k8s-deployment.yaml - kubectl apply -n ${CHEMBL_NS_PROD} -f k8s-deployment.yaml - kubectl get pods -n ${CHEMBL_NS_PROD} + - cat ${AUTOSCALER_PROD_HX_FILE_PATH} + - kubectl apply -n ${CHEMBL_NS_PROD} -f ${AUTOSCALER_PROD_HX_FILE_PATH} + # ---------------------------------------------------------------------------------------------------------------------- # Deploy to prod hh @@ -265,3 +271,5 @@ deploy_to_prod_hh: - cat k8s-deployment.yaml - kubectl apply -n ${CHEMBL_NS_PROD} -f k8s-deployment.yaml - kubectl get pods -n ${CHEMBL_NS_PROD} + - cat ${AUTOSCALER_PROD_HL_FILE_PATH} + - kubectl apply -n ${CHEMBL_NS_PROD} -f ${AUTOSCALER_PROD_HL_FILE_PATH}