monitoring cicd
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Deploy services CI/CD Pipeline
|
||||
name: Deploy Casa services CI/CD Pipeline
|
||||
|
||||
on:
|
||||
push:
|
||||
47
.gitea/workflows/monitoring-deploy.yaml
Normal file
47
.gitea/workflows/monitoring-deploy.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
name: Monitoring services CI/CD Pipeline
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- fix/*
|
||||
- main
|
||||
- master
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 15 * * 0' # every sunday 3 pm
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: casa-vlan-cicd
|
||||
env:
|
||||
GITHUB_TEMP: ${{ runner.temp }}
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Fetch limbo public actions
|
||||
env:
|
||||
RUNNER_TEMP: "${{ runner.temp }}"
|
||||
WORKSPACE: "${{ gitea.workspace }}"
|
||||
run: |
|
||||
curl -fsSL https://git.limbosolutions.com/kb/gitea/raw/branch/main/cloud-scripts/setup-limbo-actions.sh | bash 2>&1
|
||||
|
||||
- name: Setup kubectl
|
||||
uses: ./.gitea/limbo_actions/kubectl-setup
|
||||
with:
|
||||
kube_server: ${{ secrets.CASA_VLAN_KUBE_SERVER }}
|
||||
kube_ca_base64: ${{ secrets.CASA_VLAN_KUBE_CA_BASE64 }}
|
||||
kube_token: ${{ secrets.CASA_VLAN_KUBE_TOKEN }}
|
||||
|
||||
# secrets.LOKI_URL = https://<LOKISERVER>/loki/api/v1/push
|
||||
- name: Deploy promtail
|
||||
shell: bash
|
||||
run: |
|
||||
# add repo
|
||||
helm repo add grafana https://grafana.github.io/helm-charts
|
||||
# Install & Upgrade
|
||||
helm upgrade --install promtail grafana/promtail --namespace monitoring \
|
||||
--values=./promtail/values.yaml --set config.clients.url=${{ secrets.LOKI_URL }}
|
||||
|
||||
Reference in New Issue
Block a user