fix: accept YAML-declared artifact lanes

This commit is contained in:
root
2026-07-16 21:40:27 +02:00
parent 2823ae44b4
commit 392f2810ad
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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",
+1 -1
View File
@@ -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";