ci: integrate OpenBao secret retrieval

This commit is contained in:
2026-10-20 14:03:41 +02:00
parent 0469052b68
commit 8dbdeda8dc
2 changed files with 24 additions and 0 deletions
+14
View File
@@ -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"