From 1ef375a21c9efec6af3e27e4c3b31b0745d15c5d Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Sun, 8 Nov 2026 12:07:53 +0100 Subject: [PATCH] Write the bootstrap key only when it is set Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM --- .gitea/workflows/deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 541393b..2b7cf17 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -162,9 +162,11 @@ jobs: BOOTSTRAP_ADMIN_EMAIL=$SEED_ADMIN_EMAIL RAUTHY_ADMIN_EMAIL=$SEED_ADMIN_EMAIL EVENT_EMAIL=$SEED_ADMIN_EMAIL - BOOTSTRAP_API_KEY=$RAUTHY_BOOTSTRAP_API_KEY - BOOTSTRAP_API_KEY_SECRET=$RAUTHY_BOOTSTRAP_API_KEY_SECRET EOF + if [ -n "$RAUTHY_BOOTSTRAP_API_KEY" ]; then + printf 'BOOTSTRAP_API_KEY=%s\nBOOTSTRAP_API_KEY_SECRET=%s\n' \ + "$RAUTHY_BOOTSTRAP_API_KEY" "$RAUTHY_BOOTSTRAP_API_KEY_SECRET" >> "$STAGE/rauthy.env" + fi fi - name: Pull and bring the stack up