fix: accept YAML-declared artifact lanes
This commit is contained in:
@@ -52,7 +52,7 @@ const sourceStates = new Set([
|
||||
"source-present",
|
||||
"intentionally-disabled"
|
||||
]);
|
||||
const runtimeArtifactLanePattern = /^v\d{2,}$/u;
|
||||
const runtimeArtifactLanePattern = /^[a-z][a-z0-9-]*$/u;
|
||||
|
||||
const ciArtifactIdentityEnvNames = [
|
||||
"HWLAB_CI_ARTIFACT_RUN_ID",
|
||||
@@ -205,7 +205,7 @@ function printHelp() {
|
||||
"Commit-pinned artifact build/publish helper for controlled CI execution.",
|
||||
"",
|
||||
"options:",
|
||||
" --lane LANE node or runtime lane vNN; default: node",
|
||||
" --lane LANE node or a lane declared in deploy.lanes; default: node",
|
||||
` --catalog-path PATH default: ${defaultCatalogPath}`,
|
||||
` --deploy-config PATH default: ${defaultDeployPath}`,
|
||||
" --image-tag-mode MODE short or full; v02 uses full source commit IDs",
|
||||
|
||||
@@ -23,7 +23,7 @@ const defaultPublishReportPath = tempReportPath("dev-artifacts.json");
|
||||
const defaultRegistryPrefix = process.env.HWLAB_DEV_REGISTRY_PREFIX || process.env.HWLAB_DEV_REGISTRY || "127.0.0.1:5000/hwlab";
|
||||
const digestPattern = /^sha256:[a-f0-9]{64}$/;
|
||||
const commitPattern = /^[a-f0-9]{7,40}$/;
|
||||
const runtimeArtifactLanePattern = /^v\d{2,}$/u;
|
||||
const runtimeArtifactLanePattern = /^[a-z][a-z0-9-]*$/u;
|
||||
|
||||
const publishReadyStatuses = new Set(["published", "reused"]);
|
||||
const v02EnvReuseRuntimeMode = "env-reuse-git-mirror-checkout";
|
||||
|
||||
Reference in New Issue
Block a user