Commit 7101db71 authored by Javi Moreno's avatar Javi Moreno
Browse files

Added deploy stage for monitoring

parent c5c08f7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
stages:
  - build
  - test
#  - deploy
  - deploy

# include the individual .gitlab-ci.yml of each micro-service
include: 
+14 −1
Original line number Diff line number Diff line
@@ -88,3 +88,16 @@ test monitoring pytest:
      paths:
        - pytest_report.txt
      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'