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 description: A social platform to enjoy and share music
icon: https://funkwhale.audio/favicon.png icon: https://funkwhale.audio/favicon.png
name: funkwhale 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" -}} {{- define "funkwhale.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}} {{- 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: spec:
containers: containers:
- name: celery-beat - name: celery-beat
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ include "funkwhale.imageTag" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
command: command:
- sh - sh

View file

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

View file

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

View file

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