@crossdelta/platform-sdk 0.4.1 → 0.4.3
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/README.md +26 -24
- package/bin/cli.js +69 -69
- package/bin/templates/workspace/.github/actions/resolve-scope-tags/index.js +7 -9
- package/bin/templates/workspace/.github/workflows/build-and-deploy.yml.hbs +1 -0
- package/bin/templates/workspace/services/nats/README.md +2 -2
- package/package.json +1 -1
|
@@ -364,17 +364,14 @@ const main = async () => {
|
|
|
364
364
|
const result = {}
|
|
365
365
|
const missing = []
|
|
366
366
|
|
|
367
|
+
// Get registry URL from environment (e.g., "ghcr.io/orderboss/platform")
|
|
368
|
+
const registry = process.env.REGISTRY || `ghcr.io/${repositoryOwner}/${repositoryPrefix}`
|
|
369
|
+
|
|
367
370
|
for (const scope of scopes) {
|
|
368
371
|
const metadataTag = metadataByScope.get(scope.shortName)
|
|
369
|
-
|
|
370
|
-
result[scope.shortName] = metadataTag
|
|
371
|
-
continue
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
const packageName = `${repositoryPrefix}/${scope.shortName}`
|
|
375
|
-
const fallbackTag = await fetchLatestChecksumTag(packageName)
|
|
372
|
+
const imageTag = metadataTag || (await fetchLatestChecksumTag(`${repositoryPrefix}/${scope.shortName}`))
|
|
376
373
|
|
|
377
|
-
if (!
|
|
374
|
+
if (!imageTag) {
|
|
378
375
|
if (allowMissingScopes.has(scope.shortName)) {
|
|
379
376
|
console.warn(`Skipping unresolved scope ${scope.shortName} (allowed missing)`)
|
|
380
377
|
continue
|
|
@@ -383,7 +380,8 @@ const main = async () => {
|
|
|
383
380
|
continue
|
|
384
381
|
}
|
|
385
382
|
|
|
386
|
-
|
|
383
|
+
// Build full image URL: registry/service:tag
|
|
384
|
+
result[scope.shortName] = `${registry}/${scope.shortName}:${imageTag}`
|
|
387
385
|
}
|
|
388
386
|
|
|
389
387
|
if (missing.length > 0) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> 🚀 **Event-driven communication** powered by NATS + JetStream
|
|
4
4
|
|
|
5
|
-
Message broker for CloudEvents-based microservices communication using [`@crossdelta/cloudevents`](https://github.com/
|
|
5
|
+
Message broker for CloudEvents-based microservices communication using [`@crossdelta/cloudevents`](https://github.com/crossdelta/platform/tree/main/packages/cloudevents).
|
|
6
6
|
|
|
7
7
|
## ⚡ Quick Start
|
|
8
8
|
|
|
@@ -103,5 +103,5 @@ docker rm -f my-nats
|
|
|
103
103
|
|
|
104
104
|
- [NATS Documentation](https://docs.nats.io/)
|
|
105
105
|
- [JetStream Guide](https://docs.nats.io/nats-concepts/jetstream)
|
|
106
|
-
- [`@crossdelta/cloudevents` Package](https://github.com/
|
|
106
|
+
- [`@crossdelta/cloudevents` Package](https://github.com/crossdelta/platform/tree/main/packages/cloudevents)
|
|
107
107
|
- [CloudEvents Specification](https://cloudevents.io/)
|