fix(pipeline): define gomplate template for storage

This commit is contained in:
Christopher Hase 2025-07-25 13:16:20 +02:00
parent ba9c7d1d18
commit b2014f11fd

View file

@ -1,3 +1,13 @@
{{{- define "BUCKET_NAME" -}}}
{{{- if (getenv "FORGEJO_BUCKET_NAME") -}}}
{{{ getenv "FORGEJO_BUCKET_NAME" }}}
{{{- else -}}}
edp-forgejo-{{{ getenv "CLUSTER_ENVIRONMENT" }}}
{{{- end -}}}
{{{- end -}}}
# We use recreate to make sure only one instance with one version is running, because Forgejo might break or data gets inconsistant. # We use recreate to make sure only one instance with one version is running, because Forgejo might break or data gets inconsistant.
strategy: strategy:
type: Recreate type: Recreate
@ -121,10 +131,7 @@ gitea:
MINIO_ENDPOINT: obs.eu-de.otc.t-systems.com:443 MINIO_ENDPOINT: obs.eu-de.otc.t-systems.com:443
STORAGE_TYPE: minio STORAGE_TYPE: minio
MINIO_LOCATION: eu-de MINIO_LOCATION: eu-de
{{{- define "DEFAULT_FORGEJO_BUCKET_NAME" -}}} MINIO_BUCKET: "{{{ template "BUCKET_NAME" }}}"
edp-forgejo-{{{.env.CLUSTER_ENVIRONMENT}}}
{{{- end -}}}
MINIO_BUCKET: {{{ getenv "FORGEJO_BUCKET_NAME" ( template "DEFAULT_FORGEJO_BUCKET_NAME" ) }}}
MINIO_USE_SSL: true MINIO_USE_SSL: true
queue: queue: