Commit b68c04f3 authored by Sergio Gonzalez Diaz's avatar Sergio Gonzalez Diaz
Browse files

Update monitoring .gitlab-ci.yml

parent d13159fe
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -14,14 +14,6 @@ spec:
    spec:
      terminationGracePeriodSeconds: 5
      restartPolicy: Always
      # initContainers:
      # - name: influxdb
      #   image: influxdb:1.8
      #   ports:
      #   - containerPort: 8086
      #   envFrom:
      #     - secretRef:
      #         name: influxdb-secrets
      containers:
      - name: influxdb
        image: influxdb:1.8
+0 −19
Original line number Diff line number Diff line
@@ -61,25 +61,6 @@ unit test monitoring:
      reports:
        junit: src/$IMAGE_NAME/tests/report.xml

monitoring test:
  variables:
    IMAGE_NAME: 'monitoring' # name of the microservice
    IMAGE_TAG: 'develop' # tag of the container image (production, development, etc)
  stage: unit_test
  script:
    - 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/$IMAGE_NAME.yaml'
    - ls manifests
    - cat manifests/$IMAGE_NAME.yaml
    - echo 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/$IMAGE_NAME.yaml'
  rules:
    - changes:
      - src/$IMAGE_NAME/**/*.{py,in,yml}
      - src/$IMAGE_NAME/Dockerfile
      - src/$IMAGE_NAME/tests/*.py
      - src/$IMAGE_NAME/tests/Dockerfile
      - manifests/$IMAGE_NAME.yaml
      - .gitlab-ci.yml

# Deployment of the monitoring service in Kubernetes Cluster
deploy monitoring test:
  variables: