Skip to content

Commit

Permalink
fix: update automation script to use ENV with equal sign
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Dec 16, 2024
1 parent 45b69dd commit 5e7d7a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-automation.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export default async function(github) {

await exec(`cp -r ./templates/node${nodeMajor} ${minor}`, { shell: "bash" });

await exec(`sed -ri 's/^(ENV RC_VERSION) .*/\\1 '"${fullVersion}"'/;' ${minor}/Dockerfile`, { shell: "bash" });
await exec(`sed -ri 's/^(ENV NODE_VERSION) .*/\\1 '"${nodeVersion}"'/;' ${minor}/Dockerfile`, { shell: "bash" });
await exec(`sed -ri 's/^(ENV RC_VERSION=).*/\\1'"${fullVersion}"'/;' ${minor}/Dockerfile`, { shell: "bash" });
await exec(`sed -ri 's/^(ENV NODE_VERSION=).*/\\1'"${nodeVersion}"'/;' ${minor}/Dockerfile`, { shell: "bash" });
}

return newVersions;
Expand Down

0 comments on commit 5e7d7a7

Please sign in to comment.