Commit bd258977 authored by David Mendez's avatar David Mendez
Browse files

CI: add ingress set up for prod

parent 345c5fef
......@@ -6,14 +6,20 @@ variables:
SERVER_IMAGE_TAG: ${CI_REGISTRY}/${REGISTRY_USER}/${SERVER_APPLICATION}:${CI_COMMIT_SHORT_SHA}
DOCKER_DRIVER: overlay
CONFIGS_FOLDER: run_config
# Config unit tests
CONFIG_UNIT_TESTS_FILE_PATH: ${CONFIGS_FOLDER}/unit_tests.yml
# Config staging
CONFIG_STAGING_FILE_PATH: ${CONFIGS_FOLDER}/staging.yml
INGRESS_STAGING_FILE_PATH: ${CONFIGS_FOLDER}/ingress-staging.yml
CONFIG_GUNICORN_STAGING_FILE_PATH: ${CONFIGS_FOLDER}/staging.gunicorn.config.py
INGRESS_STAGING_FILE_PATH: ${CONFIGS_FOLDER}/ingress-staging.yml
# 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
# Config prod_hh
CONFIG_PROD_HH_FILE_PATH: ${CONFIGS_FOLDER}/prod_hh.yml
CONFIG_GUNICORN_PROD_HH_FILE_PATH: ${CONFIGS_FOLDER}/prod_hh.gunicorn.config.py
INGRESS_PROD_HH_FILE_PATH: ${CONFIGS_FOLDER}/ingress-prod_hh.yml
image: docker:latest
......@@ -146,6 +152,7 @@ deploy_to_staging:
- kubectl get pods -n ${CHEMBL_NS_STAGING}
- cat ${INGRESS_STAGING_FILE_PATH}
- kubectl apply -n ${CHEMBL_NS_STAGING} -f ${INGRESS_STAGING_FILE_PATH}
- kubectl get ingress -n ${CHEMBL_NS_STAGING}
#
## ----------------------------------------------------------------------------------------------------------------------
## Test staging
......@@ -184,6 +191,7 @@ prepare_config_prod_hx:
paths:
- ${CONFIG_PROD_HX_FILE_PATH}
- ${CONFIG_GUNICORN_PROD_HX_FILE_PATH}
- ${INGRESS_PROD_HX_FILE_PATH}
deploy_to_prod_hx:
stage: deploy_to_prod_hx
......@@ -213,6 +221,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 ${INGRESS_PROD_HX_FILE_PATH}
- kubectl apply -n ${CHEMBL_NS_PROD} -f ${INGRESS_PROD_HX_FILE_PATH}
- kubectl get ingress -n ${CHEMBL_NS_PROD}
functional_tests_prod_hx:
stage: test_prod_hx
......@@ -246,6 +257,7 @@ prepare_config_prod_hh:
paths:
- ${CONFIG_PROD_HH_FILE_PATH}
- ${CONFIG_GUNICORN_PROD_HH_FILE_PATH}
- ${INGRESS_PROD_HH_FILE_PATH}
deploy_to_prod_hh:
stage: deploy_to_prod_hh
......@@ -277,6 +289,9 @@ 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 ${INGRESS_PROD_HH_FILE_PATH}
- kubectl apply -n ${CHEMBL_NS_PROD} -f ${INGRESS_PROD_HH_FILE_PATH}
- kubectl get ingress -n ${CHEMBL_NS_PROD}
functional_tests_prod_hh:
stage: test_prod_hh
......
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