funkwhale: Use app version as image tag

This commit is contained in:
Alexander Olofsson 2020-04-25 22:10:14 +02:00
parent 07aba6b95a
commit 7bbfe76f68
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
6 changed files with 12 additions and 5 deletions

View file

@ -4,4 +4,4 @@ appVersion: "0.21"
description: A social platform to enjoy and share music
icon: https://funkwhale.audio/favicon.png
name: funkwhale
version: 0.3.1
version: 0.3.2

View file

@ -38,3 +38,10 @@ Create chart name and version as used by the chart label.
{{- define "funkwhale.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create the correct image tag name
*/}}
{{- define "funkwhale.imageTag" -}}
{{- .Values.image.tag | default .Chart.AppVersion -}}
{{- end -}}

View file

@ -25,7 +25,7 @@ spec:
spec:
containers:
- name: celery-beat
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.repository }}:{{ include "funkwhale.imageTag" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- sh

View file

@ -25,7 +25,7 @@ spec:
spec:
containers:
- name: worker
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.repository }}:{{ include "funkwhale.imageTag" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- sh

View file

@ -25,7 +25,7 @@ spec:
spec:
containers:
- name: funkwhale
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.repository }}:{{ include "funkwhale.imageTag" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- sh

View file

@ -4,7 +4,7 @@
---
image:
repository: funkwhale/funkwhale
tag: 0.21
# tag:
pullPolicy: IfNotPresent
nameOverride: ""