From 3b47e3b2125b8eb0f55203ba1d9b0125bc0515a5 Mon Sep 17 00:00:00 2001
From: Dantali0n <info@dantalion.nl>
Date: Tue, 13 Feb 2024 13:02:35 +0100
Subject: [PATCH] L2SS-1705: Deploy grafana, mimir and loki to central server
from gitlab
---
.gitlab-ci.yml | 39 +++++++++++++++++++++++----------------
1 file changed, 23 insertions(+), 16 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9f5b3d6..ea8fc34 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -56,22 +56,29 @@ tag-latest_prometheus:
-#deploy_dop94:
-# stage: deploy
-# image:
-# name: hashicorp/levant
-# entrypoint: [ "" ]
-# needs: [ build_grafana, build_prometheus ]
-# dependencies: []
-# environment:
-# name: dop94.astron.nl
-# url: http://dop94.astron.nl:3001
-# script:
-# - |
-# levant deploy \
-# -address="http://10.87.2.94:4646" \
-# -var image_tag="${IMAGE_TAG}" \
-# grafana-central.nomad
+deploy:
+ stage: deploy
+ image:
+ name: hashicorp/levant
+ entrypoint: [ "" ]
+ needs: [ build_grafana, build_prometheus ]
+ when: manual
+ rules:
+ - if: ($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH) || $CI_COMMIT_TAG
+ dependencies: []
+ parallel:
+ matrix:
+ - SERVER:
+ - monitoring
+ environment:
+ name: ${SERVER}.control.lofar
+ url: http://${SERVER}.control.lofar:4646
+ script:
+ - |
+ levant deploy \
+ -address="http://${SERVER}.control.lofar:4646" \
+ -var image_tag="${IMAGE_TAG}" \
+ grafana-central.nomad
# has no CI/CD yet
--
GitLab