Skip to content

Commit

Permalink
feat(authelia): allow tags to reference digests (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-elliott authored Jul 9, 2021
1 parent 54dc06e commit d01e518
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/authelia/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: authelia
version: 0.4.14
version: 0.4.15
kubeVersion: ">= 1.13.0-0"
description: Authelia is a Single Sign-On Multi-Factor portal for web apps
type: application
Expand Down
4 changes: 4 additions & 0 deletions charts/authelia/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ Return the proper image name
{{- $registryName := default "docker.io" .Values.image.registry -}}
{{- $repositoryName := default "authelia/authelia" .Values.image.repository -}}
{{- $tag := default .Chart.AppVersion .Values.image.tag | toString -}}
{{- if hasPrefix $tag "sha256:" }}
{{- printf "%s/%s@%s" $registryName $repositoryName $tag -}}
{{- else -}}
{{- printf "%s/%s:%s" $registryName $repositoryName $tag -}}
{{- end -}}
{{- end -}}

{{/*
Expand Down

0 comments on commit d01e518

Please sign in to comment.