--- kind: pipeline type: docker name: pull_request image_pull_secrets: - dockerconfigjson steps: - name: lint yaml image: registry.fedy95.com/baseimage-yamllint:latest commands: - yamllint -c /yamllint/relaxed.yaml alertmanager/config.yml - yamllint -c /yamllint/relaxed.yaml grafana/provisioning/dashboards/dashboard.yml - yamllint -c /yamllint/relaxed.yaml grafana/provisioning/datasources/datasource.yml - yamllint -c /yamllint/relaxed.yaml prometheus/prometheus.yml - yamllint -c /yamllint/relaxed.yaml promtail/etc/promtail/config.yml - yamllint -c /yamllint/relaxed.yaml docker-compose.yml when: event: pull_request - name: lint json image: registry.fedy95.com/baseimage-jsonlint:latest commands: - jsonlint -qc grafana/provisioning/dashboards/esxi/cluster.json - jsonlint -qc grafana/provisioning/dashboards/esxi/esx.json - jsonlint -qc grafana/provisioning/dashboards/esxi/esxi.json - jsonlint -qc grafana/provisioning/dashboards/esxi/virtualmachine.json - jsonlint -qc grafana/provisioning/dashboards/esxi/vmware-stats_rev1.json - jsonlint -qc grafana/provisioning/dashboards/other/docker_containers.json - jsonlint -qc grafana/provisioning/dashboards/other/i-o-statistics.json - jsonlint -qc grafana/provisioning/dashboards/other/monitor_services.json - jsonlint -qc grafana/provisioning/dashboards/other/nexus_host.json - jsonlint -qc grafana/provisioning/dashboards/other/nginx_container.json - jsonlint -qc grafana/provisioning/dashboards/other/node-exporter.json - jsonlint -qc grafana/provisioning/dashboards/other/smart-1.json - jsonlint -qc grafana/provisioning/dashboards/other/smart-2.json - jsonlint -qc grafana/provisioning/dashboards/other/smart-3.json - jsonlint -qc grafana/provisioning/dashboards/other/smart-4.json when: event: pull_request --- kind: pipeline type: ssh name: master_push clone: disable: true server: host: from_secret: host user: from_secret: user password: from_secret: password steps: - name: release commands: - cd /home/fedy95/infra/monitoring - git pull - make restart - name: cleanup commands: - cd /home/fedy95/infra/monitoring - make cleanup trigger: branch: - master event: - push ...