-
Notifications
You must be signed in to change notification settings - Fork 308
105 lines (94 loc) · 3.36 KB
/
release-helm.yml
File metadata and controls
105 lines (94 loc) · 3.36 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Release - Helm Chart
on:
workflow_dispatch:
inputs:
version:
description: 'Chart version (e.g. 26.03)'
required: true
type: string
source-ref:
description: 'Git ref to build from'
required: false
type: string
default: 'main'
dry-run:
description: 'Build chart without publishing to NGC'
required: false
type: boolean
default: false
ngc-org:
description: 'NGC organization'
required: false
type: string
default: 'nvidian'
ngc-team:
description: 'NGC team'
required: false
type: string
default: 'nemo-llm'
chart-name:
description: 'Helm chart name'
required: false
type: string
default: 'nv-ingest'
jobs:
release-helm:
name: Build & Publish Helm Chart
runs-on: ubuntu-latest
env:
NGC_CLI_API_KEY: ${{ secrets.NVIDIA_API_KEY }}
NGC_CLI_ORG: ${{ inputs.ngc-org }}
NGC_CLI_TEAM: ${{ inputs.ngc-team }}
NGC_CLI_FORMAT_TYPE: json
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
ref: ${{ inputs.source-ref }}
- name: Setup Helm
uses: azure/setup-helm@v4
- name: Install helm-docs
run: |
HELM_DOCS_VERSION="1.14.2"
curl -sSL "https://github.com/norwoodj/helm-docs/releases/download/v${HELM_DOCS_VERSION}/helm-docs_${HELM_DOCS_VERSION}_Linux_x86_64.tar.gz" \
| tar xz -C /usr/local/bin helm-docs
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install Python dependencies
run: pip install ngcsdk pyyaml
- name: Update Helm README
run: helm/update_helm_readme.sh
- name: Add Helm dependency repos
run: |
helm repo add milvus https://zilliztech.github.io/milvus-helm
helm repo add zipkin https://zipkin.io/zipkin-helm
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
- name: Build Helm dependencies
run: |
helm dependency update helm/
helm dependency build helm/
- name: Release Helm chart
run: |
DRY_RUN_FLAG=""
if [ "${{ inputs.dry-run }}" = "true" ]; then
DRY_RUN_FLAG="--dry-run"
fi
python ci/scripts/release_helm_chart.py \
--org "${{ inputs.ngc-org }}" \
--team "${{ inputs.ngc-team }}" \
--name "${{ inputs.chart-name }}" \
--version "${{ inputs.version }}" \
$DRY_RUN_FLAG
- name: Summary
run: |
echo "### Helm Chart Release" >> $GITHUB_STEP_SUMMARY
echo "| Setting | Value |" >> $GITHUB_STEP_SUMMARY
echo "|---------|-------|" >> $GITHUB_STEP_SUMMARY
echo "| Chart | \`${{ inputs.chart-name }}\` |" >> $GITHUB_STEP_SUMMARY
echo "| Version | \`${{ inputs.version }}\` |" >> $GITHUB_STEP_SUMMARY
echo "| NGC | \`${{ inputs.ngc-org }}/${{ inputs.ngc-team }}/${{ inputs.chart-name }}:${{ inputs.version }}\` |" >> $GITHUB_STEP_SUMMARY
echo "| Dry Run | \`${{ inputs.dry-run }}\` |" >> $GITHUB_STEP_SUMMARY