feat(frontend): inject commit ID into frontend build for version tracking
- Added a new build argument `COMMIT_ID_ARG` to pass the commit ID during the Docker build process. - Updated the Dockerfile to set an environment variable `VITE_FRONTEND_COMMIT` with the commit ID. - Enhanced the Vite configuration to resolve the frontend commit ID from the environment or Git. - Modified the SystemInfo component to display the frontend commit ID in the UI. - Implemented a version info preparation step in the GitHub Actions workflow to capture the commit ID.
This commit is contained in:
Vendored
+2
-1
@@ -5,4 +5,5 @@ declare module '*.vue' {
|
||||
import { Component } from 'vue'; const component: Component; export default component;
|
||||
}
|
||||
|
||||
declare const __FRONTEND_VERSION__: string;
|
||||
declare const __FRONTEND_VERSION__: string;
|
||||
declare const __FRONTEND_COMMIT__: string;
|
||||
Reference in New Issue
Block a user