add .env generation from bws, handle build services in deploy
Provision server / provision (push) Successful in 6s

- configure.sh generates .env files from .env.keys + bws
- deploy.sh detects build: services and runs docker compose build
- new-service.sh prints .env.keys instructions
- clean up .gitignore
This commit is contained in:
2026-03-19 12:11:46 -04:00
parent 7e35042b71
commit 3a8fb09bcf
4 changed files with 50 additions and 7 deletions
+6
View File
@@ -64,3 +64,9 @@ OUTER
sed -i "s/APP_PLACEHOLDER/$APP/g" "$REPO_ROOT/.gitea/workflows/deploy-$APP.yml"
echo "Done. Edit docker/$APP/compose.yml, then commit and push."
echo ""
echo "If this service needs secrets:"
echo " 1. Add secrets to Bitwarden Secrets Manager"
echo " 2. Map them in docker/$APP/.env.keys (format: ENV_VAR=bws-secret-name)"
echo " 3. Add env_file: .env to compose.yml"
echo " configure.sh will generate the .env file on the server automatically."