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 /.gcp | |
| 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 '.gcp')
| -rw-r--r-- | .gcp/release-docker.yaml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.gcp/release-docker.yaml b/.gcp/release-docker.yaml new file mode 100644 index 00000000..6a8924a4 --- /dev/null +++ b/.gcp/release-docker.yaml @@ -0,0 +1,58 @@ +steps: + # Step 1: Install root dependencies (includes workspaces) + - name: 'us-west1-docker.pkg.dev/gemini-code-dev/gemini-code-containers/gemini-code-builder' + id: 'Install Dependencies' + entrypoint: 'npm' + args: ['install'] + + # Step 4: Authenticate for Docker (so we can push images to the artifact registry) + - name: 'us-west1-docker.pkg.dev/gemini-code-dev/gemini-code-containers/gemini-code-builder' + id: 'Authenticate docker' + entrypoint: 'npm' + args: ['run', 'auth'] + + # Step 5: Build workspace packages + - name: 'us-west1-docker.pkg.dev/gemini-code-dev/gemini-code-containers/gemini-code-builder' + id: 'Build packages' + entrypoint: 'npm' + args: ['run', 'build:packages'] + + # Step 6: Build sandbox container image + - name: 'us-west1-docker.pkg.dev/gemini-code-dev/gemini-code-containers/gemini-code-builder' + id: 'Build sandbox Docker image' + entrypoint: 'bash' + args: + - -c + - | + if [ "$_OFFICIAL_RELEASE" = "true" ]; then + export GEMINI_SANDBOX_IMAGE_TAG="${TAG_NAME#v}" + else + export GEMINI_SANDBOX_IMAGE_TAG="$SHORT_SHA" + fi + npm run build:sandbox:fast + env: + - 'GEMINI_SANDBOX=$_CONTAINER_TOOL' + + # Step 7: Publish sandbox container image + - name: 'us-west1-docker.pkg.dev/gemini-code-dev/gemini-code-containers/gemini-code-builder' + id: 'Publish sandbox Docker image' + entrypoint: 'bash' + args: + - -c + - | + if [ "$_OFFICIAL_RELEASE" = "true" ]; then + export GEMINI_SANDBOX_IMAGE_TAG="${TAG_NAME#v}" + else + export GEMINI_SANDBOX_IMAGE_TAG="$SHORT_SHA" + fi + npm run publish:sandbox + env: + - 'GEMINI_SANDBOX=$_CONTAINER_TOOL' + +options: + defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET + dynamicSubstitutions: true + +substitutions: + _OFFICIAL_RELEASE: 'false' + _CONTAINER_TOOL: 'docker' |
