diff --git a/js-action/src/index.js b/js-action/src/index.js index a4d7f78..29c68f0 100644 --- a/js-action/src/index.js +++ b/js-action/src/index.js @@ -69,6 +69,13 @@ async function main() { }, ''); } + if ('envs' in image) { + for (e of image.envs) { + console.log(`${e.name} = ${e.value}`); + process.env[e.name] = e.value; + } + } + runCommand(`env | grep LALKA`); // build image runCommand(`docker build ${file} ${args} ${secrets} --tag ${imageTag} ${target} .`);