Skip to content

Commit cb927be

Browse files
authored
fix build (#11)
1 parent 6f2f992 commit cb927be

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/linters/ct.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ chart-dirs:
66
chart-repos:
77
- cert-manager-webhook-transip=https://demeester.dev/cert-manager-webhook-transip
88
helm-extra-args: --timeout 600s
9+
check-version-increment: false
910
excluded-charts:
1011
additional-commands:
1112
# - helm unittest --helm3 --strict --file unittests/*.yaml --file 'unittests/**/*.yaml' {{ .Path }}

.github/workflows/release.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ run-name: Release Helm Chart ${{ github.ref_name }}
33

44
on:
55
push:
6-
branches:
7-
- main
6+
tags:
7+
- 'v*'
88

99
jobs:
1010
release:
@@ -26,6 +26,14 @@ jobs:
2626
git config user.name "$GITHUB_ACTOR"
2727
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
2828
29+
- name: Update versions
30+
run: |
31+
# update the chart version in Chart.yaml
32+
sed -i "s/version: 0.0.0/version: ${GITHUB_REF_NAME#v}/" charts/cert-manager-webhook-transip/Chart.yaml
33+
sed -i "s/appVersion: \"0.0.0\"/appVersion: \"${GITHUB_REF_NAME#v}\"/" charts/cert-manager-webhook-transip/Chart.yaml
34+
# update the chart version in values.yaml
35+
sed -i "s/tag: latest/tag: ${GITHUB_REF_NAME#v}/" charts/cert-manager-webhook-transip/values.yaml
36+
2937
- name: Install Helm
3038
uses: azure/setup-helm@v4
3139
env:

charts/cert-manager-webhook-transip/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
2-
version: 0.1.3
3-
appVersion: "0.1.3"
2+
version: 0.0.0
3+
appVersion: "0.0.0"
44
description: A Helm chart for Kubernetes
55
name: cert-manager-webhook-transip
66

0 commit comments

Comments
 (0)