feat: implement remote repository support for manifest updates

- Added functionality to push updated manifests to a remote Git repository after building.
- Introduced a Git token configuration in the builder settings to authenticate pushes.
- Enhanced the CLI to handle remote repository synchronization, including cloning and pulling updates.
- Updated the builder to return detailed results on whether updates occurred during the build process.
- Revised documentation to reflect new configuration options and usage instructions.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-06-28 13:34:35 +08:00
parent 6668425fba
commit 6d430faa9a
9 changed files with 963 additions and 401 deletions

3
env.ts
View File

@@ -18,6 +18,9 @@ export const env = createEnv({
S3_EXCLUDE_REGEX: z.string().optional(),
PG_CONNECTION_STRING: z.string().min(1).optional(),
// Git token for uploading updated manifest to remote repository
GIT_TOKEN: z.string().optional(),
},
runtimeEnv: process.env,
isServer: typeof window === 'undefined',