diff options
| author | matt korwel <[email protected]> | 2025-07-03 22:57:01 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-04 03:57:01 +0000 |
| commit | d43ea268b01e80166ca9325bf174a9796105715f (patch) | |
| tree | b9af69c504a328074fcb4bff8165ede0460d05d7 /scripts/build_sandbox.js | |
| parent | 32db5ba0e1b7628fa6714bea8532377641b1af18 (diff) | |
Releasing: Utilizing Github Actions and Tagging for release. (#2852)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: N. Taylor Mullen <[email protected]>
Diffstat (limited to 'scripts/build_sandbox.js')
| -rw-r--r-- | scripts/build_sandbox.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/build_sandbox.js b/scripts/build_sandbox.js index e2c7a224..962f99d9 100644 --- a/scripts/build_sandbox.js +++ b/scripts/build_sandbox.js @@ -123,13 +123,17 @@ function buildImage(imageName, dockerfile) { readFileSync(join(process.cwd(), 'package.json'), 'utf-8'), ).version; + const imageTag = + process.env.GEMINI_SANDBOX_IMAGE_TAG || imageName.split(':')[1]; + const finalImageName = `${imageName.split(':')[0]}:${imageTag}`; + execSync( `${buildCommand} ${ process.env.BUILD_SANDBOX_FLAGS || '' - } --build-arg CLI_VERSION_ARG=${npmPackageVersion} -f "${dockerfile}" -t "${imageName}" .`, + } --build-arg CLI_VERSION_ARG=${npmPackageVersion} -f "${dockerfile}" -t "${finalImageName}" .`, { stdio: buildStdout, shell: '/bin/bash' }, ); - console.log(`built ${imageName}`); + console.log(`built ${finalImageName}`); } if (baseImage && baseDockerfile) { |
