diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9f5b3d62a61c55d251685ac9ece0048bf74556b2..ea8fc3498dae232d80ea13a0187a44ece5826a96 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