Skip to content

Commit 5ec5e0b

Browse files
committed
update
1 parent 8043308 commit 5ec5e0b

4 files changed

Lines changed: 52 additions & 13 deletions

File tree

.github/configs/ct-lint.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
remote: origin
2+
target-branch: main
3+
chart-dirs:
4+
- "deployments/helm"
5+
helm-extra-args: "--timeout 600s"
6+
validate-chart-schema: true
7+
validate-chart-values: true
8+
validate-maintainers: false
9+
check-version-increment: true
10+
validate-yaml: true
11+
exclude-deprecated: true

.github/configs/lintconf.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
rules:
3+
braces:
4+
min-spaces-inside: 0
5+
max-spaces-inside: 0
6+
min-spaces-inside-empty: -1
7+
max-spaces-inside-empty: -1
8+
brackets:
9+
min-spaces-inside: 0
10+
max-spaces-inside: 0
11+
min-spaces-inside-empty: -1
12+
max-spaces-inside-empty: -1
13+
colons:
14+
max-spaces-before: 0
15+
max-spaces-after: 1
16+
commas:
17+
max-spaces-before: 0
18+
min-spaces-after: 1
19+
max-spaces-after: 1
20+
document-end: disable
21+
document-start: disable # No --- to start a file
22+
hyphens:
23+
max-spaces-after: 1
24+
indentation:
25+
spaces: consistent
26+
indent-sequences: whatever # - list indentation will handle both indentation and without
27+
check-multi-line-strings: false
28+
key-duplicates: enable
29+
line-length: disable # Lines can be any length
30+
new-line-at-end-of-file: enable
31+
new-lines:
32+
type: unix
33+
trailing-spaces: enable
34+
truthy:
35+
level: warning

.github/workflows/helm.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,17 @@ jobs:
4242
helm plugin install https://github.com/melmorabity/helm-kubeconform
4343
helm kubeconform chart --verbose --summary --strict --exit-on-error
4444
45-
- name: Run helm unit tests
46-
run: |
47-
helm plugin install https://github.com/helm-unittest/helm-unittest
48-
helm unittest chart
49-
50-
- name: validate
51-
run: |
52-
.github/scripts/validate.sh
53-
5445
- name: release
5546
if: github.event.pull_request.merged == true
5647
env:
5748
REPOSITORY_OWNER: ${{ github.repository_owner }}
5849
run: |
5950
REPO_NAME=$(echo "${GITHUB_REPOSITORY}" | cut -d'/' -f2)
60-
CHART_NAME="$(grep "name:" chart/Chart.yaml | sed 's/name: //')"
51+
CHART_NAME="$(grep -e "^name:" deployments/helm/gpud/Chart.yaml | awk '{print $2}')"
52+
CHART_VERSION="$(grep -e "^version:" deployments/helm/gpud/Chart.yaml | awk '{print $2}')"
6153
echo '${{ secrets.GITHUB_TOKEN }}' | helm registry login -u '${{ github.actor }}' --password-stdin 'ghcr.io'
62-
helm package chart --version "${IMAGEVERSION}" --app-version "${IMAGEVERSION}"
63-
echo "Pushing helm chart ${CHART_NAME}-${IMAGEVERSION}.tgz to oci://ghcr.io/${REPOSITORY_OWNER}"
64-
helm push "${CHART_NAME}-${IMAGEVERSION}.tgz" "oci://ghcr.io/${REPOSITORY_OWNER}"
54+
helm package deployments/helm/gpud
55+
echo "Pushing helm chart ${CHART_NAME}-${CHART_VERSION}.tgz to oci://ghcr.io/${REPOSITORY_OWNER}"
56+
helm push "${CHART_NAME}-${CHART_VERSION}.tgz" "oci://ghcr.io/chart/${REPOSITORY_OWNER}"
6557
6658

deployments/helm/gpud/Chart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ description: GPUd Helm chart for Kubernetes
44
type: application
55
version: 0.8.0
66
appVersion: "v0.8.0"
7+
icon: https://assets.nvidiagrid.net/ngc/logos/Infrastructure.png

0 commit comments

Comments
 (0)