Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #24 from kiosk-sh/improve-release-pipeline
Browse files Browse the repository at this point in the history
releases: use auto generated chart versions
  • Loading branch information
Lukas Gentele authored Feb 8, 2020
2 parents c7cc61e + c028b90 commit 3cc35c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ jobs:
with:
version: "v3.0.3"
- run: |
RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/v!!p')
helm plugin install https://github.com/chartmuseum/helm-push
helm repo add chartmuseum $CHART_MUSEUM_URL --username $CHART_MUSEUM_USER --password $CHART_MUSEUM_PASSWORD
helm push ./chart chartmuseum
helm push --version="$RELEASE_VERSION" ./chart chartmuseum
env:
CHART_MUSEUM_URL: "https://charts.devspace.sh/"
CHART_MUSEUM_USER: ${{ secrets.CHART_MUSEUM_USER }}
Expand Down
8 changes: 1 addition & 7 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,4 @@ description: A multi tenancy solution for kubernetes
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 0.0.1
version: 0.0.0 # version is auto-generated by release pipeline
2 changes: 2 additions & 0 deletions chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ helm.sh/chart: {{ include "kiosk.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- else }}
app.kubernetes.io/version: {{ .Chart.Version | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
Expand Down

0 comments on commit 3cc35c3

Please sign in to comment.