datagrok-tools 6.1.8 → 6.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/commands/publish.js +12 -1
- package/package.json +1 -1
package/bin/commands/publish.js
CHANGED
|
@@ -307,6 +307,10 @@ async function processDockerImages(packageName, version, registry, devKey, host,
|
|
|
307
307
|
if (registry) {
|
|
308
308
|
const remoteTag = `${registry}/datagrok/${remoteFullName}`;
|
|
309
309
|
if (foundLocalName !== remoteTag) dockerTag(foundLocalName, remoteTag);
|
|
310
|
+
} else {
|
|
311
|
+
const canonicalTag = `datagrok/${remoteFullName}`;
|
|
312
|
+
dockerTag(foundLocalName, canonicalTag);
|
|
313
|
+
color.log(` Tagged as ${canonicalTag}`);
|
|
310
314
|
}
|
|
311
315
|
result = pushImage(img.imageName, registryTag, registry);
|
|
312
316
|
} else {
|
|
@@ -331,6 +335,13 @@ async function processDockerImages(packageName, version, registry, devKey, host,
|
|
|
331
335
|
requestedVersion: registryTag
|
|
332
336
|
};
|
|
333
337
|
if (!result || result.fallback) color.warn(`Build failed. Falling back to ${fallback.image} (hash mismatch)`);
|
|
338
|
+
} else if (skipDockerRebuild) {
|
|
339
|
+
color.warn(`No fallback available. Skipping docker build (--skip-docker-rebuild).`);
|
|
340
|
+
result = {
|
|
341
|
+
image: null,
|
|
342
|
+
fallback: true,
|
|
343
|
+
requestedVersion: registryTag
|
|
344
|
+
};
|
|
334
345
|
} else {
|
|
335
346
|
// No fallback and no local image — must build
|
|
336
347
|
color.warn(`No fallback available. Building ${img.fullLocalName}...`);
|
|
@@ -369,7 +380,7 @@ function pushImage(imageName, tag, registry) {
|
|
|
369
380
|
fallback: false
|
|
370
381
|
};
|
|
371
382
|
}
|
|
372
|
-
color.warn(
|
|
383
|
+
color.warn(`No registry configured. Image tagged locally only. Run \`grok config --registry\` to configure.`);
|
|
373
384
|
return {
|
|
374
385
|
image: canonicalImage,
|
|
375
386
|
fallback: false
|
package/package.json
CHANGED