Commit d0c373e3 authored by Kamal Dodiya's avatar Kamal Dodiya
Browse files

Deploy toygraphql/thoas service

parent 2340cce5
Pipeline #86878 failed with stage
in 10 seconds
stages:
- deploy
variables:
BROWSER_SERVICE_SLUG: dev
GENOME_SEARCH_SERVICE_SLUG: dev
TOYGRAPHQL_SERVICE_SLUG: dev
THOAS_SERVICE_SLUG: dev
.deploy:
stage: deploy
image: dockerhub.ebi.ac.uk/kamal/deploy-tools:0.2
......@@ -16,20 +22,46 @@ stages:
- GENOME_SEARCH_SERVICE_TAG=`yq r values.yaml be-services.genome-search-service`
- GENOME_SEARCH_SERVICE_TAG="${GENOME_SEARCH_SERVICE_TAG//[[:space:]]/}"
- GENOME_SEARCH_SERVICE_SLUG="${GENOME_SEARCH_SERVICE_TAG//[^[:alnum:]]/-}"
- TOYGRAPHQL_TAG=`yq r values.yaml be-services.toygraphql-service`
- TOYGRAPHQL_TAG="${TOYGRAPHQL_TAG//[[:space:]]/}"
- TOYGRAPHQL_SERVICE_SLUG="${TOYGRAPHQL_TAG//[^[:alnum:]]/-}"
- THOAS_SERVICE_TAG=`yq r values.yaml be-services.thoas-service`
- THOAS_SERVICE_TAG="${THOAS_SERVICE_TAG//[[:space:]]/}"
- THOAS_SERVICE_SLUG="${THOAS_SERVICE_TAG//[^[:alnum:]]/-}"
# ensembl-client
- sed -i "s#<DEPLOYMENT_ENV>#${SERVICE_SLUG}#g" ensembl_client_service_cluster.yaml
- sed -i "s#<DEPLOYMENT_ENV>#${SERVICE_SLUG}#g" ensembl_client_ingress.yaml
- sed -i "s#<SUB_DOMAIN>#${SERVICE_SLUG}#g" ensembl_client_ingress.yaml
# ensembl-2020-server
- sed -i "s#<DEPLOYMENT_ENV>#${BROWSER_SERVICE_SLUG}#g" ensembl_server_service.yaml
- sed -i "s#<DEPLOYMENT_ENV>#${BROWSER_SERVICE_SLUG}#g" ensembl_server_ingress.yaml
- sed -i "s#<SUB_DOMAIN>#${SERVICE_SLUG}#g" ensembl_server_ingress.yaml
# ensembl-2020-genome-search
- sed -i "s#<DEPLOYMENT_ENV>#${GENOME_SEARCH_SERVICE_SLUG}#g" ensembl_genome_search_service.yaml
- sed -i "s#<DEPLOYMENT_ENV>#${GENOME_SEARCH_SERVICE_SLUG}#g" ensembl_genome_search_ingress.yaml
- sed -i "s#<SUB_DOMAIN>#${SERVICE_SLUG}#g" ensembl_genome_search_ingress.yaml
# ensembl-toygraphql
- sed -i "s#<DEPLOYMENT_ENV>#${TOYGRAPHQL_SERVICE_SLUG}#g" ensembl_graphql_server_service.yaml
- sed -i "s#<DEPLOYMENT_ENV>#${TOYGRAPHQL_SERVICE_SLUG}#g" ensembl_graphql_server_ingress.yaml
- sed -i "s#<SUB_DOMAIN>#${SERVICE_SLUG}#g" ensembl_graphql_server_ingress.yaml
# ensembl-thoas
- sed -i "s#<DEPLOYMENT_ENV>#${THOAS_SERVICE_SLUG}#g" ensembl_thoas_service.yaml
- sed -i "s#<DEPLOYMENT_ENV>#${THOAS_SERVICE_SLUG}#g" ensembl_thoas_ingress.yaml
- sed -i "s#<SUB_DOMAIN>#${SERVICE_SLUG}#g" ensembl_thoas_ingress.yaml
script:
# ensembl-thoas
- kubectl apply -f ensembl_thoas_service.yaml
- kubectl apply -f ensembl_thoas_ingress.yaml
# ensembl-toygraphql
- kubectl apply -f ensembl_graphql_server_service.yaml
- kubectl apply -f ensembl_graphql_server_ingress.yaml
# ensembl-2020-server
- kubectl apply -f ensembl_server_service.yaml
- kubectl apply -f ensembl_server_ingress.yaml
# ensembl-2020-genome-search
- kubectl apply -f ensembl_genome_search_service.yaml
- kubectl apply -f ensembl_genome_search_ingress.yaml
# ensembl-client
- kubectl apply -f ensembl_client_service_cluster.yaml
- kubectl apply -f ensembl_client_ingress.yaml
......
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