ci: migrate Docker images to GHCR and add tag-triggered release

- Replace Docker Hub with GitHub Container Registry (ghcr.io)
- Add tag push trigger for automatic release creation
- Dynamic version from tag name (2.0.8 format)
- Frontend GitHub links now use env variable VITE_GITHUB_REPO
- Release artifacts auto-replace repo/version in scripts
This commit is contained in:
sagit
2026-01-24 04:40:12 +00:00
parent c0c88a8466
commit 6e25e1838d
5 changed files with 185 additions and 152 deletions
+3
View File
@@ -6,6 +6,7 @@ export type SiteConfig = typeof siteConfig;
const CACHE_PREFIX = 'vite_config_';
const VERSION = "2.0.7-beta";
const APP_VERSION = "1.0.3";
const GITHUB_REPO = import.meta.env.VITE_GITHUB_REPO || "https://github.com/Sagit-chu/flux-panel";
const getInitialConfig = () => {
if (typeof window === 'undefined') {
@@ -13,6 +14,7 @@ const getInitialConfig = () => {
name: "flux",
version: VERSION,
app_version: APP_VERSION,
github_repo: GITHUB_REPO,
};
}
@@ -22,6 +24,7 @@ const getInitialConfig = () => {
name: cachedAppName,
version: VERSION,
app_version: APP_VERSION,
github_repo: GITHUB_REPO,
};
}
return {