@toa.io/operations 1.0.0-alpha.7 → 1.0.0-alpha.8
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/package.json +6 -6
- package/src/deployment/registry.js +11 -3
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.8",
|
|
4
4
|
"description": "Toa Deployment",
|
|
5
5
|
"homepage": "https://toa.io",
|
|
6
6
|
"author": {
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@toa.io/filesystem": "1.0.0-alpha.
|
|
31
|
-
"@toa.io/generic": "1.0.0-alpha.
|
|
32
|
-
"@toa.io/norm": "1.0.0-alpha.
|
|
33
|
-
"@toa.io/yaml": "1.0.0-alpha.
|
|
30
|
+
"@toa.io/filesystem": "1.0.0-alpha.8",
|
|
31
|
+
"@toa.io/generic": "1.0.0-alpha.8",
|
|
32
|
+
"@toa.io/norm": "1.0.0-alpha.8",
|
|
33
|
+
"@toa.io/yaml": "1.0.0-alpha.8",
|
|
34
34
|
"execa": "5.1.1",
|
|
35
35
|
"fs-extra": "11.1.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "2ee18835c8214600e1d354251fa632913bff38c3"
|
|
38
38
|
}
|
|
@@ -39,7 +39,9 @@ class Registry {
|
|
|
39
39
|
async build () {
|
|
40
40
|
await this.prepare()
|
|
41
41
|
|
|
42
|
-
for (const image of this.#images)
|
|
42
|
+
for (const image of this.#images) {
|
|
43
|
+
await this.#build(image)
|
|
44
|
+
}
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
async push () {
|
|
@@ -69,7 +71,11 @@ class Registry {
|
|
|
69
71
|
async #build (image, push = false) {
|
|
70
72
|
const args = ['--context=default', 'buildx', 'build']
|
|
71
73
|
|
|
72
|
-
if (push)
|
|
74
|
+
if (push) {
|
|
75
|
+
args.push('--push')
|
|
76
|
+
} else {
|
|
77
|
+
args.push('--load')
|
|
78
|
+
}
|
|
73
79
|
|
|
74
80
|
args.push('--tag', image.reference, image.context)
|
|
75
81
|
|
|
@@ -86,7 +92,9 @@ class Registry {
|
|
|
86
92
|
args.push('--builder', BUILDER)
|
|
87
93
|
|
|
88
94
|
await this.#ensureBuilder()
|
|
89
|
-
} else
|
|
95
|
+
} else {
|
|
96
|
+
args.push('--builder', 'default')
|
|
97
|
+
}
|
|
90
98
|
|
|
91
99
|
args.push('--progress', 'plain')
|
|
92
100
|
|