-
Notifications
You must be signed in to change notification settings - Fork 42
70 lines (56 loc) · 1.94 KB
/
Copy pathchart-release.yml
File metadata and controls
70 lines (56 loc) · 1.94 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Release charts
on:
push:
branches:
- main
workflow_dispatch:
inputs:
version:
description: 'Release version (semver without v prefix, e.g. 0.4.0)'
required: true
type: string
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
env:
VERSION: ${{ inputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Validate version format
run: .github/scripts/release.sh validate_version "$VERSION"
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.18.4
- name: Bump chart versions
run: .github/scripts/release.sh bump_versions "$VERSION"
- name: Update chart dependencies
run: .github/scripts/release.sh update_deps
- name: Commit, tag, and push
run: .github/scripts/release.sh commit_and_tag "$VERSION"
- name: Create or update GitHub release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: .github/scripts/release.sh create_release "$VERSION"
- name: Login to GHCR
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Publish all charts to GHCR
run: .github/scripts/release.sh publish_oci
- name: Add OCI links to GitHub release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: .github/scripts/release.sh add_oci_links "$VERSION"
- name: Package charts for GitHub release
run: .github/scripts/release.sh package_charts
- name: Upload chart tarballs to GitHub release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: .github/scripts/release.sh upload_tarballs "$VERSION"
- name: Update Helm repo index on gh-pages
run: .github/scripts/release.sh update_repo_index "$VERSION"