Commit 317ecf74 authored by David Mendez's avatar David Mendez
Browse files

CI: add tags to pipeline jobs

parent 0a14961b
......@@ -24,11 +24,6 @@ variables:
INGRESS_PROD_HH_FILE_PATH: ${CONFIGS_FOLDER}/ingress-prod_hh.yml
AUTOSCALER_PROD_HH_FILE_PATH: ${CONFIGS_FOLDER}/autoscaler-prod_hh.yml
image: docker:latest
services:
- docker:dind
stages:
- build
- prepare_config_tests
......@@ -52,6 +47,10 @@ build_docker_image:
except:
- schedules
stage: build
services:
- docker:dind
tags:
- dind
variables:
DOCKER_HOST: tcp://docker:2375
script:
......@@ -74,6 +73,8 @@ pylint:
entrypoint: [""]
except:
- schedules
tags:
- docker
script:
- set -x
- find . -iname "*.py" | grep -v './app/free_text_parsing/.*' | xargs pylint
......@@ -92,6 +93,8 @@ prepare_config_tests:
- set -x
- mkdir -p ${CONFIGS_FOLDER}
- git clone https://${CONFIG_DEPLOY_GITLAB_USERNAME}:${CONFIG_DEPLOY_GITLAB_TOKEN}@${CONFIGURATIONS_REPO} ${CONFIGS_FOLDER}
tags:
- docker
artifacts:
paths:
- ${CONFIG_UNIT_TESTS_FILE_PATH}
......@@ -103,6 +106,8 @@ unit_tests:
entrypoint: [""]
except:
- schedules
tags:
- docker
script:
- set -x
- CONFIG_FILE_PATH=${CONFIG_UNIT_TESTS_FILE_PATH} python -m unittest
......@@ -122,6 +127,8 @@ prepare_config_staging:
- rm -rf ${CONFIGS_FOLDER} || true
- mkdir -p ${CONFIGS_FOLDER}
- git clone https://${CONFIG_DEPLOY_GITLAB_USERNAME}:${CONFIG_DEPLOY_GITLAB_TOKEN}@${CONFIGURATIONS_REPO} ${CONFIGS_FOLDER}
tags:
- docker
artifacts:
paths:
- ${CONFIG_STAGING_FILE_PATH}
......@@ -141,6 +148,8 @@ deploy_to_staging:
environment:
name: staging
url: ${SERVER_URL_STAGING}
tags:
- docker
script:
- set -x
- echo "$KUBE_CA_PEM_HX" > "$(pwd)/kube.ca.pem"
......@@ -185,6 +194,8 @@ functional_tests_staging:
- staging
environment:
name: staging
tags:
- docker
script:
- set -x
- functional_tests/run_functional_tests.py ${ES_PROXY_API_URL_STAGING} https://wwwdev.ebi.ac.uk/chembl/interface_api/delayed_jobs
......@@ -205,6 +216,8 @@ prepare_config_prod_hx:
- rm -rf ${CONFIGS_FOLDER} || true
- mkdir -p ${CONFIGS_FOLDER}
- git clone https://${CONFIG_DEPLOY_GITLAB_USERNAME}:${CONFIG_DEPLOY_GITLAB_TOKEN}@${CONFIGURATIONS_REPO} ${CONFIGS_FOLDER}
tags:
- docker
artifacts:
paths:
- ${CONFIG_PROD_HX_FILE_PATH}
......@@ -223,6 +236,8 @@ deploy_to_prod_hx:
- schedules
environment:
name: prod_hx
tags:
- docker
script:
- set -x
- echo "$KUBE_CA_PEM_HX" > "$(pwd)/kube.ca.pem"
......@@ -262,6 +277,8 @@ functional_tests_prod_hx:
entrypoint: [""]
only:
- master
tags:
- docker
script:
- set -x
- sleep 30 # Give some time for the deployment to take effect.
......@@ -284,6 +301,8 @@ prepare_config_prod_hh:
- mkdir -p ${CONFIGS_FOLDER}
- git clone https://${CONFIG_DEPLOY_GITLAB_USERNAME}:${CONFIG_DEPLOY_GITLAB_TOKEN}@${CONFIGURATIONS_REPO} ${CONFIGS_FOLDER}
- ls ${CONFIGS_FOLDER}
tags:
- docker
artifacts:
paths:
- ${CONFIG_PROD_HH_FILE_PATH}
......@@ -302,6 +321,8 @@ deploy_to_prod_hh:
- schedules
environment:
name: prod_hh
tags:
- docker
script:
- set -x
- echo "$KUBE_CA_PEM_HH" > "$(pwd)/kube.ca.pem"
......@@ -341,6 +362,8 @@ functional_tests_prod_hh:
entrypoint: [""]
only:
- master
tags:
- docker
script:
- set -x
- sleep 30 # Give some time for the deployment to take effect.
......@@ -357,6 +380,8 @@ functional_tests_prod_public:
only:
- master
needs: ["functional_tests_prod_hh", "functional_tests_prod_hx"]
tags:
- docker
script:
- set -x
- sleep 30 # Give some time for the deployment to take effect.
......
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