Publish docker images to ghcr.io (#5311)

This commit is contained in:
Louis Lam
2024-11-05 20:26:26 +08:00
committed by GitHub
parent 5864c6dd88
commit 5bcde56a0f
4 changed files with 34 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
import { buildDist, buildImage, checkDocker, getRepoName } from "./lib.mjs";
import { buildDist, buildImage, checkDocker, getRepoNames } from "./lib.mjs";
// Docker Hub repository name
const repoName = getRepoName();
const repoNames = getRepoNames();
// Check if docker is running
checkDocker();
@@ -10,7 +10,7 @@ checkDocker();
buildDist();
// Build full image (rootless)
buildImage(repoName, [ "nightly2-rootless" ], "nightly-rootless");
buildImage(repoNames, [ "nightly2-rootless" ], "nightly-rootless");
// Build full image
buildImage(repoName, [ "nightly2" ], "nightly");
buildImage(repoNames, [ "nightly2" ], "nightly");