Skip to content

Commit 332fdcb

Browse files
authored
feat: add gitea repo public url as env (#2034)
1 parent a6254b2 commit 332fdcb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/fixtures/env/apps/otomi-api.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ spec:
66
editorInactivityTimeout: 5
77
git:
88
9-
repoUrl: github.com/redkubes/otomi-values-demo.git
109
user: someuser

values/otomi-api/otomi-api.gotmpl

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
{{- $d := $v.apps.drone }}
77
{{- $sops := $v | get "kms.sops" dict }}
88
{{- $giteaValuesUrl := "http://gitea-http.gitea.svc.cluster.local:3000/otomi/values" }}
9+
{{- $giteaValuesPublilcUrl := printf "https://gitea.%s/otomi/values" $v.cluster.domainSuffix }}
910
{{- $helmChartCatalog := printf "https://gitea.%s/otomi/charts.git" $v.cluster.domainSuffix }}
1011
{{- $defaultPlatformAdminEmail := printf "platform-admin@%s" $v.cluster.domainSuffix }}
1112
{{- $sopsEnv := tpl (readFile "../../helmfile.d/snippets/sops-env.gotmpl") $sops }}
@@ -29,6 +30,7 @@ env:
2930
DEBUG: 'otomi:*,-otomi:authz,-otomi:repo'
3031
VERBOSITY: '1'
3132
GIT_REPO_URL: {{ $o | get "git.repoUrl" $giteaValuesUrl }}
33+
GIT_REPO_PUBLIC_URL: {{ $giteaValuesPublilcUrl }}
3234
GIT_BRANCH: {{ $o | get "git.branch" "main" }}
3335
VERSIONS: |
3436
{{ $v.versions | toJson | nindent 4}}

0 commit comments

Comments
 (0)