-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (46 loc) · 1.38 KB
/
slo-observability.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
42
43
44
45
46
47
48
49
50
name: SLO Observability Helm Chart
on:
pull_request:
branches:
- main
paths:
- 'slo-observability/**'
push:
branches:
- main
paths:
- 'slo-observability/**'
- '.github/workflows/slo-observability.yaml'
jobs:
next-version:
uses: stakater/charts/.github/workflows/next_version.yaml@main
with:
component: slo-observability
pull-request:
uses: stakater/charts/.github/workflows/pull_request.yaml@main
name: Pull Request
if: ${{ github.ref != 'refs/heads/main' }}
needs:
- next-version
secrets:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
with:
CONTAINER_REGISTRY_URL: ghcr.io/stakater
HELM_REGISTRY_URL: oci://ghcr.io/stakater/charts
SUBPATH: slo-observability
NEXT_VERSION: ${{ needs.next-version.outputs.version }}
push-and-release:
uses: stakater/charts/.github/workflows/push.yaml@main
name: Push and Release
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs:
- next-version
secrets:
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
with:
CONTAINER_REGISTRY_URL: ghcr.io/stakater
HELM_REGISTRY_URL: oci://ghcr.io/stakater/charts
SUBPATH: slo-observability
NEXT_VERSION: ${{ needs.next-version.outputs.version }}