feat(web): separate build sources and localize time
ci/woodpecker/push/web-build Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful

This commit is contained in:
justme committed 2026-10-12 16:50:15 +08:00
1 parent 89cd92f7ee
commit 10aa0304e4
9 files changed
+60 -17

No files matched your search

+4 -2
View File
@@ -17,8 +17,10 @@ function gitValue(...args: string[]): string {
const buildInfo = {
frontendVersion: webPackage.version,
commit: process.env.WEBDROP_BUILD_COMMIT ?? gitValue('rev-parse', '--short=12', 'HEAD'),
tag: process.env.WEBDROP_BUILD_TAG ?? gitValue('describe', '--tags', '--exact-match', 'HEAD'),
frontendCommit: process.env.WEBDROP_FRONTEND_COMMIT ?? gitValue('rev-parse', 'HEAD'),
frontendTag: process.env.WEBDROP_FRONTEND_TAG ?? gitValue('describe', '--tags', '--exact-match', 'HEAD'),
backendCommit: process.env.WEBDROP_BACKEND_COMMIT ?? gitValue('rev-parse', 'HEAD'),
backendTag: process.env.WEBDROP_BACKEND_TAG ?? gitValue('describe', '--tags', '--exact-match', 'HEAD'),
builtAt: process.env.WEBDROP_BUILD_TIME ?? new Date().toISOString(),
};