fix: uptag
This commit is contained in:
parent
37b5fb702d
commit
749ca3c620
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ const main = async () => {
|
||||||
const { name, key = cdKey, tag = defaultTag } = app;
|
const { name, key = cdKey, tag = defaultTag } = app;
|
||||||
const valuesFile = `apps/${name}/envs/${env}/values.yaml`;
|
const valuesFile = `apps/${name}/envs/${env}/values.yaml`;
|
||||||
console.log(`${valuesFile} -> ${key}=${tag}`);
|
console.log(`${valuesFile} -> ${key}=${tag}`);
|
||||||
const valuesRaw = await fs.readFile(`${workingDir}/valuesFile`, { encoding: "utf-8" })
|
const valuesRaw = await fs.readFile(`${workingDir}/${valuesFile}`, { encoding: "utf-8" })
|
||||||
const values = yaml.parse(valuesRaw);
|
const values = yaml.parse(valuesRaw);
|
||||||
set(values, key, tag);
|
set(values, key, tag);
|
||||||
await fs.writeFile(yaml.stringify(values), { encoding: "utf-8" });
|
await fs.writeFile(yaml.stringify(values), { encoding: "utf-8" });
|
||||||
|
|
Loading…
Add table
Reference in a new issue