diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index dff0502..95d5dbf 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -156,6 +156,14 @@ jobs: printf 'BOOTSTRAP_API_KEY=%s\nBOOTSTRAP_API_KEY_SECRET=%s\n' \ "$RAUTHY_BOOTSTRAP_API_KEY" "$RAUTHY_BOOTSTRAP_API_KEY_SECRET" >> "$STAGE/rauthy.env" fi + # Compose reads an env_file the way it reads compose.yml: "$name" in + # a value is a variable to fill in, and one that is not set comes + # out empty. Every value above is the secret itself, so a "$" left + # in one is literal (Rauthy's API keys are "$"), and + # "$$" is compose's literal "$". Without this, RAUTHY_API_KEY reached + # portal as "portal" alone, Rauthy answered 401, and every invite + # failed. .env is left alone: it is what compose.yml interpolates. + sed -i 's/\$/$$/g' "$STAGE/portal.env" "$STAGE/nats.env" "$STAGE/chat.env" "$STAGE/rauthy.env" - name: Pull and bring the stack up run: sudo /usr/local/bin/deploy-tomtervel