-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.59 KB
/
helm_release.yml
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
51
52
53
54
55
56
57
name: Release Helm Chart
concurrency:
group: release-helm-chart-${{ github.ref }}
on:
push:
branches:
- main
jobs:
# TODO(madison#ENG-1839|2024-03-21): swap to this method once we are ready for a public release flow.
# release:
# permissions:
# contents: write
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Configure Git
# run: |
# git config user.name "$GITHUB_ACTOR"
# git config user.email "[email protected]"
# - name: Install Helm
# uses: azure/setup-helm@v4
# - name: Add dependency repositories
# run: |
# helm repo add eck-operator https://helm.elastic.co
# helm repo add opensearch https://opensearch-project.github.io/helm-charts/
# - name: Run chart-releaser
# uses: helm/[email protected]
# env:
# CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
release_tag:
name: Release a tag
permissions:
contents: write
uses: elastiflow/gha-reusable-workflows/.github/workflows/reusable_release_tag.yml@v0
release_helm_chart:
name: Release Helm Chart
permissions:
contents: "read"
id-token: "write"
uses: elastiflow/gha-reusable-workflows/.github/workflows/reusable_release_helm_chart.yml@v0
needs: release_tag
with:
version: ${{ needs.release_tag.outputs.version }}
chart_dir: charts/netobserv
chart_registry: oci://us-docker.pkg.dev/operations-trv1s8/helm-chart-netobserv