zixulu 1.76.1 → 1.76.2
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/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/updateDockerCompose.ts +1 -4
package/dist/index.js
CHANGED
|
@@ -4818,8 +4818,8 @@ async function updateDockerCompose() {
|
|
|
4818
4818
|
const content = await readFile(file, "utf-8");
|
|
4819
4819
|
const data = yaml_0.parse(content);
|
|
4820
4820
|
const images = Object.values(data.services).map((service)=>service.image);
|
|
4821
|
-
consola_0.start("开始更新镜像");
|
|
4822
4821
|
for (const image of images){
|
|
4822
|
+
consola_0.start(`开始更新镜像 ${image}`);
|
|
4823
4823
|
const match = image.match(/^(.+):(.+)$/);
|
|
4824
4824
|
const name = match ? match[1] : image;
|
|
4825
4825
|
const tag = match ? match[2] : "latest";
|
|
@@ -4834,7 +4834,6 @@ async function updateDockerCompose() {
|
|
|
4834
4834
|
});
|
|
4835
4835
|
consola_0.info(`更新镜像 ${image} 完成`);
|
|
4836
4836
|
}
|
|
4837
|
-
consola_0.success("更新镜像完成");
|
|
4838
4837
|
await spawnAsync("docker compose down", {
|
|
4839
4838
|
shell: true,
|
|
4840
4839
|
stdio: "inherit"
|