@toa.io/operations 1.0.0-alpha.272 → 1.0.0-alpha.273
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-alpha.273](https://github.com/toa-io/toa/compare/v1.0.0-alpha.272...v1.0.0-alpha.273) (2026-09-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @toa.io/operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [1.0.0-alpha.272](https://github.com/toa-io/toa/compare/v1.0.0-alpha.271...v1.0.0-alpha.272) (2026-09-01)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/operations",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.273",
|
|
4
4
|
"description": "Toa Deployment",
|
|
5
5
|
"homepage": "https://toa.io",
|
|
6
6
|
"author": {
|
|
@@ -27,12 +27,11 @@
|
|
|
27
27
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@toa.io/
|
|
31
|
-
"@toa.io/
|
|
32
|
-
"@toa.io/norm": "1.0.0-alpha.272",
|
|
33
|
-
"@toa.io/yaml": "1.0.0-alpha.272",
|
|
30
|
+
"@toa.io/generic": "1.0.0-alpha.273",
|
|
31
|
+
"@toa.io/norm": "1.0.0-alpha.273",
|
|
34
32
|
"execa": "5.1.1",
|
|
35
|
-
"fs-extra": "11.1.1"
|
|
33
|
+
"fs-extra": "11.1.1",
|
|
34
|
+
"js-yaml": "4.3.1"
|
|
36
35
|
},
|
|
37
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "ad3284850ece95ffd5325fd0995707fc144c9c3d"
|
|
38
37
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const { join } = require('node:path')
|
|
4
4
|
const { writeFile: write } = require('node:fs/promises')
|
|
5
|
-
const
|
|
5
|
+
const jsyaml = require('js-yaml')
|
|
6
6
|
const fs = require('fs-extra')
|
|
7
7
|
|
|
8
8
|
const { merge, declare, describe } = require('./.deployment')
|
|
@@ -92,3 +92,7 @@ function addVariables (list, variables, used = new Set()) {
|
|
|
92
92
|
const TEMPLATES = join(__dirname, 'chart/templates')
|
|
93
93
|
|
|
94
94
|
exports.Deployment = Deployment
|
|
95
|
+
|
|
96
|
+
function dump (object) {
|
|
97
|
+
return jsyaml.dump(object, { noRefs: true, lineWidth: -1 })
|
|
98
|
+
}
|
|
@@ -5,7 +5,6 @@ const fs = require('fs-extra')
|
|
|
5
5
|
const { createHash } = require('node:crypto')
|
|
6
6
|
|
|
7
7
|
const { Image } = require('./image')
|
|
8
|
-
const { undef } = require('@toa.io/concise/source/expressions/undefined')
|
|
9
8
|
|
|
10
9
|
class Composition extends Image {
|
|
11
10
|
dockerfile = join(__dirname, 'composition.Dockerfile')
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
const { join } = require('node:path')
|
|
4
|
-
const { readFile } = require('node:fs/promises')
|
|
5
|
-
const {
|
|
4
|
+
const { mkdtemp, readFile } = require('node:fs/promises')
|
|
5
|
+
const { tmpdir } = require('node:os')
|
|
6
6
|
|
|
7
7
|
const { Image, RUNTIME_IMAGE } = require('./image')
|
|
8
8
|
|
|
@@ -41,7 +41,7 @@ describe('runtime base image', () => {
|
|
|
41
41
|
let root
|
|
42
42
|
|
|
43
43
|
beforeEach(async () => {
|
|
44
|
-
root = await
|
|
44
|
+
root = await mkdtemp(join(tmpdir(), 'toa-runtime-base-test'))
|
|
45
45
|
})
|
|
46
46
|
|
|
47
47
|
it('should default build.image to version-pinned GHCR runtime image', async () => {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const {
|
|
3
|
+
const { mkdir, mkdtemp, readdir } = require('node:fs/promises')
|
|
4
|
+
const { join, resolve } = require('node:path')
|
|
5
|
+
const { tmpdir } = require('node:os')
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* @param {string} type
|
|
@@ -8,8 +10,15 @@ const { directory } = require('@toa.io/filesystem')
|
|
|
8
10
|
* @return {Promise<string>}
|
|
9
11
|
*/
|
|
10
12
|
async function create (type, path) {
|
|
11
|
-
if (path === undefined)
|
|
12
|
-
|
|
13
|
+
if (path === undefined) return await mkdtemp(join(tmpdir(), 'toa-' + type))
|
|
14
|
+
|
|
15
|
+
path = resolve(path)
|
|
16
|
+
|
|
17
|
+
await mkdir(path, { recursive: true })
|
|
18
|
+
|
|
19
|
+
const entries = await readdir(path)
|
|
20
|
+
|
|
21
|
+
if (entries.length > 0) throw new Error('Target directory must be empty')
|
|
13
22
|
|
|
14
23
|
return path
|
|
15
24
|
}
|