forked from rackerlabs/genestack
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.52 KB
/
helm-prometheus-postgres-exporter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Helm GitHub Actions for Prometheus Postgres Exporter
on:
pull_request:
paths:
- base-helm-configs/prometheus-postgres-exporter/**
- base-kustomize/prometheus-postgres-exporter/**
- .github/workflows/helm-prometheus-postgres-exporter.yaml
jobs:
helm:
strategy:
matrix:
overlays:
- base
name: Helm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: azure/setup-helm@v3
with:
version: latest
token: "${{ secrets.GITHUB_TOKEN }}"
id: helm
- name: Add prometheus-community repo to helm
run: |
${{ steps.helm.outputs.helm-path }} repo add prometheus-community https://prometheus-community.github.io/helm-charts
${{ steps.helm.outputs.helm-path }} repo update
- name: Run Helm Template
run: |
${{ steps.helm.outputs.helm-path }} template prometheus prometheus-community/prometheus-postgres-exporter \
--create-namespace \
--namespace=prometheus \
-f ${{ github.workspace }}//base-helm-configs/prometheus-postgres-exporter/values.yaml \
--post-renderer ${{ github.workspace }}/base-kustomize/kustomize.sh \
--post-renderer-args prometheus-postgres-exporter/${{ matrix.overlays }} > /tmp/rendered.yaml
- name: Return helm Build
uses: actions/upload-artifact@v4
with:
name: helm-prometheus-artifact-${{ matrix.overlays }}
path: /tmp/rendered.yaml