@toa.io/operations 1.0.0-alpha.266 → 1.0.0-alpha.270
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,17 @@
|
|
|
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.270](https://github.com/toa-io/toa/compare/v1.0.0-alpha.269...v1.0.0-alpha.270) (2026-08-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **operations:** let a composition set its own base image ([61ba331](https://github.com/toa-io/toa/commit/61ba3319dc91915a3197d348111af411bbd5bff1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [1.0.0-alpha.266](https://github.com/toa-io/toa/compare/v1.0.0-alpha.265...v1.0.0-alpha.266) (2026-08-29)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @toa.io/operations
|
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.270",
|
|
4
4
|
"description": "Toa Deployment",
|
|
5
5
|
"homepage": "https://toa.io",
|
|
6
6
|
"author": {
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@toa.io/filesystem": "1.0.0-alpha.254",
|
|
31
31
|
"@toa.io/generic": "1.0.0-alpha.254",
|
|
32
|
-
"@toa.io/norm": "1.0.0-alpha.
|
|
32
|
+
"@toa.io/norm": "1.0.0-alpha.270",
|
|
33
33
|
"@toa.io/yaml": "1.0.0-alpha.254",
|
|
34
34
|
"execa": "5.1.1",
|
|
35
35
|
"fs-extra": "11.1.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "94400bdd411b4c25074ffcf58184580ddd060268"
|
|
38
38
|
}
|
|
@@ -38,19 +38,14 @@ class Composition extends Image {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
get base () {
|
|
41
|
-
|
|
41
|
+
if (this.#image !== undefined) return this.#image
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
const value = component.build?.image
|
|
45
|
-
|
|
46
|
-
if (image !== null && image !== value) {
|
|
47
|
-
throw new Error(`Composition '${this.#name}' requires different base images for its components. Specify base image for the composition in the context.`)
|
|
48
|
-
}
|
|
43
|
+
const images = new Set(this.#components.map((component) => component.build?.image))
|
|
49
44
|
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
if (images.size > 1)
|
|
46
|
+
throw new Error(`Composition '${this.#name}' requires different base images for its components. Specify base image for the composition in the context.`)
|
|
52
47
|
|
|
53
|
-
return
|
|
48
|
+
return images.values().next().value
|
|
54
49
|
}
|
|
55
50
|
|
|
56
51
|
get run () {
|
|
@@ -35,18 +35,14 @@ class Mono extends Image {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
get base () {
|
|
38
|
-
|
|
38
|
+
if (this.#image !== undefined) return this.#image
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
const value = component.build?.image
|
|
42
|
-
|
|
43
|
-
if (image !== null && image !== value)
|
|
44
|
-
throw new Error('Mono deployment requires different base images for its components. Specify base image for the composition in the context.')
|
|
40
|
+
const images = new Set(this.#components.map((component) => component.build?.image))
|
|
45
41
|
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
if (images.size > 1)
|
|
43
|
+
throw new Error('Mono deployment requires different base images for its components. Specify base image for the composition in the context.')
|
|
48
44
|
|
|
49
|
-
return
|
|
45
|
+
return images.values().next().value
|
|
50
46
|
}
|
|
51
47
|
|
|
52
48
|
get run () {
|