-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
VERDOM
committed
Feb 27, 2024
1 parent
0bd6d05
commit a29ecb2
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Pipeline Monitoring | ||
|
||
on: | ||
push: | ||
branches: | ||
- monitoring | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: "Google auth" | ||
id: "auth" | ||
uses: "google-github-actions/auth@v1" | ||
with: | ||
credentials_json: "${{ secrets.KUBERNETES_CREDENTIALS }}" | ||
|
||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v1 | ||
with: | ||
project_id: ${{ secrets.GCP_PROJECT }} | ||
install_components: "gke-gcloud-auth-plugin" | ||
|
||
- name: Configure gcloud | ||
run: gcloud config set compute/region europe-west1 | ||
|
||
- name: Get cluster credential | ||
uses: google-github-actions/get-gke-credentials@v1 | ||
with: | ||
cluster_name: khagu-dev-cluster | ||
location: europe-west1-b | ||
|
||
- name: Add prometheus repo | ||
run: helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
|
||
- name: Update helm repo | ||
run: helm repo update | ||
|
||
- name: Install prometheus | ||
run: helm install prometheus prometheus-community/prometheus --namespace monitoring |