BetterFrame/.gitignore
Mitchell R 7d81891b0e
fix(version): derive server version from git at Docker build time
Coolify pulls from GitHub and runs docker compose build — no guaranteed
env vars like SOURCE_COMMIT. Previous approach relied on ARG/ENV
passthrough that silently defaulted to "dev".

Fix: install git in the builder stage, COPY .git into context, run
git describe --tags --always to derive the version, write it to
/app/server/.bf-version. version.ts reads this file as a fallback
between env vars and the "dev" literal.

Chain: BF_SERVER_VERSION env → BF_BUILD_VERSION env → .bf-version file
→ COOLIFY_GIT_COMMIT env → SOURCE_COMMIT env → "dev".

Also: fix .gitignore for rauc-signing/ (was under wrong path).
2026-05-21 16:02:21 +02:00

46 lines
493 B
Text

# Dependencies
node_modules/
# Build output
server/lib/
server/bsb-plugin.json
nodered/lib/
kiosk/target/
# BSB generated
.bsb/
# Runtime data
*.db
*.db-wal
*.db-shm
secret.key
# OS
.DS_Store
Thumbs.db
Desktop.ini
# Editors
.vscode/
!.vscode/settings.json
!.vscode/extensions.json
.idea/
*.swp
*.swo
*~
# Env / secrets
.env
.env.*
!.env.example
# Logs
*.log
npm-debug.log*
# Misc
*.tgz
*.tsbuildinfo
# RAUC signing keys (generated locally, secrets set in GitHub Actions)
rauc-signing/