@kapeta/local-cluster-service 0.0.75 → 0.1.0
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/.github/workflows/main.yml +26 -0
- package/CHANGELOG.md +14 -0
- package/definitions.d.ts +4 -4
- package/index.js +5 -5
- package/package.json +29 -4
- package/src/assetManager.js +4 -2
- package/src/containerManager.js +135 -59
- package/src/instanceManager.js +33 -9
- package/src/instances/routes.js +10 -0
- package/src/networkManager.js +6 -6
- package/src/proxy/routes.js +16 -14
- package/src/proxy/types/rest.js +5 -6
- package/src/proxy/types/web.js +3 -5
- package/src/repositoryManager.js +16 -5
- package/src/serviceManager.js +0 -1
- package/src/utils/BlockInstanceRunner.js +435 -0
- package/src/utils/LogData.js +50 -0
- package/src/utils/utils.js +13 -0
- package/.github/workflows/pr-check.yml +0 -18
- package/.github/workflows/publish.yml +0 -20
@@ -0,0 +1,13 @@
|
|
1
|
+
const FS = require("node:fs");
|
2
|
+
const YAML = require("yaml");
|
3
|
+
|
4
|
+
|
5
|
+
exports.readYML = function readYML(path) {
|
6
|
+
let rawYaml = FS.readFileSync(path);
|
7
|
+
|
8
|
+
try {
|
9
|
+
return YAML.parse(rawYaml.toString());
|
10
|
+
} catch(err) {
|
11
|
+
throw new Error('Failed to parse plan YAML: ' + err);
|
12
|
+
}
|
13
|
+
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
name: Check
|
2
|
-
|
3
|
-
on: [pull_request]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
build:
|
7
|
-
|
8
|
-
runs-on: ubuntu-latest
|
9
|
-
|
10
|
-
steps:
|
11
|
-
- uses: actions/checkout@v2
|
12
|
-
- uses: actions/setup-node@v3
|
13
|
-
with:
|
14
|
-
node-version: 18
|
15
|
-
registry-url: https://registry.npmjs.org/
|
16
|
-
- run: npm install
|
17
|
-
env:
|
18
|
-
CI: true
|
@@ -1,20 +0,0 @@
|
|
1
|
-
name: Publish to Kapeta Public NPM
|
2
|
-
on:
|
3
|
-
push:
|
4
|
-
branches:
|
5
|
-
- master
|
6
|
-
jobs:
|
7
|
-
build:
|
8
|
-
runs-on: ubuntu-latest
|
9
|
-
steps:
|
10
|
-
- uses: actions/checkout@v2
|
11
|
-
- uses: actions/setup-node@v3
|
12
|
-
with:
|
13
|
-
node-version: 18
|
14
|
-
registry-url: https://registry.npmjs.org/
|
15
|
-
scope: '@kapeta'
|
16
|
-
|
17
|
-
- run: npm install
|
18
|
-
- run: npm publish --access public
|
19
|
-
env:
|
20
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|