From 749ca3c620eb0e17e6382b67146c4be329e16ea3 Mon Sep 17 00:00:00 2001 From: devthejo Date: Wed, 20 Dec 2023 22:58:29 +0100 Subject: [PATCH] fix: uptag --- uptag/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uptag/index.js b/uptag/index.js index d4d4103..a78deb9 100644 --- a/uptag/index.js +++ b/uptag/index.js @@ -47,7 +47,7 @@ const main = async () => { const { name, key = cdKey, tag = defaultTag } = app; const valuesFile = `apps/${name}/envs/${env}/values.yaml`; 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); set(values, key, tag); await fs.writeFile(yaml.stringify(values), { encoding: "utf-8" });