ci: integrate OpenBao secret retrieval
This commit is contained in:
@@ -2,6 +2,11 @@ default:
|
||||
tags:
|
||||
- docker
|
||||
|
||||
include:
|
||||
- project: 'next-gen-portal/ci-templates'
|
||||
ref: 'main'
|
||||
file: '/templates/openbao/with-secret.yml'
|
||||
|
||||
stages:
|
||||
- package
|
||||
- publish
|
||||
@@ -57,8 +62,17 @@ publish_chart:
|
||||
- package_chart
|
||||
|
||||
push_chart_to_gitea:
|
||||
extends: .openbao-with-secrets
|
||||
stage: publish
|
||||
image: *helm_image
|
||||
|
||||
id_tokens:
|
||||
OPENBAO_ID_TOKEN:
|
||||
aud: "https://openbao.helmholz.local:8200"
|
||||
|
||||
variables:
|
||||
OPENBAO_SECRET_REQUESTS_FILE: "secrets.json"
|
||||
|
||||
script:
|
||||
- echo "$GITEA_TOKEN" | helm registry login "$GITEA_HOST" --username "$GITEA_USERNAME" --password-stdin
|
||||
- helm push "${CHART_ARCHIVE}" "$GITEA_REPO"
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"namespace": "devops",
|
||||
"role": "gitlab-freeradius",
|
||||
"mount": "gitea",
|
||||
"path": "token",
|
||||
"field": "token",
|
||||
"variable": "GITEA_TOKEN"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user