Skip to content

Commit e9bf224

Browse files
authored
chore: semver compatible chart version for devs (#1559)
1 parent c6da7ac commit e9bf224

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.github/workflows/integration.yml

-2
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ jobs:
270270
ref=${{ github.event.pull_request.head.ref || github.ref }}
271271
tag=${ref##*/}
272272
sed --in-place "s/APP_VERSION_PLACEHOLDER/$tag/g" chart/otomi/Chart.yaml
273-
sed --in-place "s/CHART_VERSION_PLACEHOLDER/1.0.0/g" chart/otomi/Chart.yaml
274273
sed --in-place "s/CONTEXT_PLACEHOLDER/${{ env.SCALEWAY_CLUSTER_CONTEXT }}/g" tests/integration/${{ inputs.install_profile }}.yaml
275274
sed --in-place "s/OTOMI_VERSION_PLACEHOLDER/${GITHUB_REF##*/}/g" tests/integration/${{ inputs.install_profile }}.yaml
276275
touch values-container-registry.yaml
@@ -399,7 +398,6 @@ jobs:
399398
ref=${{ github.event.pull_request.head.ref || github.ref }}
400399
tag=${ref##*/}
401400
sed --in-place "s/APP_VERSION_PLACEHOLDER/$tag/g" chart/otomi/Chart.yaml
402-
sed --in-place "s/CHART_VERSION_PLACEHOLDER/1.0.0/g" chart/otomi/Chart.yaml
403401
sed --in-place "s/CONTEXT_PLACEHOLDER/${{ env.DIGITALOCEAN_CLUSTER_CONTEXT }}/g" tests/integration/${{ inputs.install_profile }}.yaml
404402
sed --in-place "s/OTOMI_VERSION_PLACEHOLDER/${GITHUB_REF##*/}/g" tests/integration/${{ inputs.install_profile }}.yaml
405403
touch values-container-registry.yaml

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150
)
151151
152152
# Update Chart.yaml and values.yaml with the new app version
153-
sed -i "s/CHART_VERSION_PLACEHOLDER/$app_version/g" chart/otomi/Chart.yaml
153+
sed -i "s/0.0.0-chart-version/$app_version/g" chart/otomi/Chart.yaml
154154
sed -i "s/APP_VERSION_PLACEHOLDER/v$app_version/g" chart/otomi/Chart.yaml
155155
156156
echo "Chart and values files updated successfully with version $app_version"

chart/otomi/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A Helm chart for installing otomi in Kubernetes
44
home: https://otomi.io/
55
icon: https://otomi.io/img/otomi-logo.svg
66
type: application
7-
version: CHART_VERSION_PLACEHOLDER
7+
version: 0.0.0-chart-version
88
appVersion: APP_VERSION_PLACEHOLDER
99
keywords:
1010
- otomi

0 commit comments

Comments
 (0)