-
Notifications
You must be signed in to change notification settings - Fork 142
32 lines (30 loc) · 1.14 KB
/
helm-release.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
name: helm-release
on:
workflow_dispatch:
permissions:
contents: read # for actions/checkout to fetch code
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write # needed to write releases
id-token: write # needed for keyless signing
packages: write # needed for ghcr access
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Publish Helm chart in GitHub Pages
uses: stefanprodan/helm-gh-pages@0ad2bb377311d61ac04ad9eb6f252fb68e207260 # v1.7.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Helm OCI
run: |
VERSION=$(yq e '.version' charts/tf-controller/Chart.yaml)
mkdir helm-release
helm package charts/tf-controller/ -d helm-release
helm push helm-release/tf-controller-${VERSION}.tgz oci://ghcr.io/flux-iac/charts