From 7101db71f69b83a848d10dc6c89b333327e07ea1 Mon Sep 17 00:00:00 2001 From: Javi Moreno <francisco.moreno.external@atos.net> Date: Mon, 26 Jul 2021 05:48:14 -0400 Subject: [PATCH] Added deploy stage for monitoring --- .gitlab-ci.yml | 2 +- src/monitoring/.gitlab-ci.yml | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b9a7b4905..26bc9b1e5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ stages: - build - test -# - deploy + - deploy # include the individual .gitlab-ci.yml of each micro-service include: diff --git a/src/monitoring/.gitlab-ci.yml b/src/monitoring/.gitlab-ci.yml index 817acf617..8c3f6c0ac 100644 --- a/src/monitoring/.gitlab-ci.yml +++ b/src/monitoring/.gitlab-ci.yml @@ -87,4 +87,17 @@ test monitoring pytest: when: always paths: - pytest_report.txt - expire_in: 1 day \ No newline at end of file + expire_in: 1 day + +# Deployment of the monitoring service in Kubernetes Cluster +deploy monitoring: + stage: deploy + needs: + - build monitoring + - test monitoring run + script: + - kubectl apply -f "manisfests/monitoringservice.yaml" + when: manual + rules: + - if: '$CI_COMMIT_BRANCH == "develop" || $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' + -- GitLab