Skip to content

Commit baef87b

Browse files
committed
bump to build 35, get image tag from appVersion
1 parent 3b5b089 commit baef87b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

backend/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: backend
3-
version: 0.0.2
3+
version: 0.0.3
44
description: Backend of the Snoty application suite
55
type: application
66
home: https://snoty.me
@@ -12,7 +12,7 @@ maintainers:
1212
1313
url: https://github.com/SIMULATAN
1414
icon: https://avatars.githubusercontent.com/u/163506575
15-
appVersion: "0.0.1"
15+
appVersion: "0.0.1-35"
1616
dependencies:
1717
- name: common
1818
version: 2.x.x

backend/templates/_helpers.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
Return the proper image name
33
*/}}
44
{{- define "snoty.image" -}}
5-
{{- include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global) -}}
5+
{{/* per default, the image tag is the `appVersion`. however, it can be overriden by the user */}}
6+
{{- $image := merge .Values.image (dict "tag" .Chart.AppVersion) -}}
7+
{{- include "common.images.image" (dict "imageRoot" $image "global" .Values.global) -}}
68
{{- end -}}

backend/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
image:
1010
registry: ghcr.io
1111
repository: snotyme/snoty-backend
12-
tag: 0.0.1-20
12+
# tag: 0.0.1-34
1313
digest: ""
1414
## Specify a imagePullPolicy
1515
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'

0 commit comments

Comments
 (0)