forked from cert-manager/webhook-example
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.19 KB
/
helm-release.yaml
File metadata and controls
48 lines (40 loc) · 1.19 KB
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
name: Helm Release
on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
packages: write
id-token: write
jobs:
package-and-push:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Helm plugins
uses: actions/cache@v4
with:
path: ~/.local/share/helm/plugins
key: ${{ runner.os }}-helm-plugins-${{ hashFiles('**/Chart.yaml') }}
restore-keys: |
${{ runner.os }}-helm-plugins-
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.16.0
- name: Package Helm Chart
run: |
cd deploy/cert-manager-alidns-webhook
VERSION=${GITHUB_REF_NAME#v}
helm package . --version "${VERSION}" --app-version "${VERSION}"
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Helm Chart to GHCR
run: |
helm push deploy/cert-manager-alidns-webhook/*.tgz oci://ghcr.io/crazygit/charts