diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b9a7b4905bd2834e07ebca3350aba669462a5198..26bc9b1e5edc351e27a69ab91d069657cc2cba92 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 817acf6171d32c2e1aa0b2ef5d3aa1c9302f3261..8c3f6c0acda6cc8f4bc1a644e8118081ea39fcd1 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' +