mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-11 19:31:06 +08:00
Improve the build process (#5267)
This commit is contained in:
16
extra/release/nightly.mjs
Normal file
16
extra/release/nightly.mjs
Normal file
@@ -0,0 +1,16 @@
|
||||
import { buildDist, buildImage, checkDocker, getRepoName } from "./lib.mjs";
|
||||
|
||||
// Docker Hub repository name
|
||||
const repoName = getRepoName();
|
||||
|
||||
// Check if docker is running
|
||||
checkDocker();
|
||||
|
||||
// Build frontend dist (it will build on the host machine, TODO: build on a container?)
|
||||
buildDist();
|
||||
|
||||
// Build full image (rootless)
|
||||
buildImage(repoName, [ "nightly2-rootless" ], "nightly-rootless");
|
||||
|
||||
// Build full image
|
||||
buildImage(repoName, [ "nightly2" ], "nightly");
|
Reference in New Issue
Block a user