2025-07-01 14:34:40 -05:00
|
|
|
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: 'npm'
|
|
|
|
|
args: ['run', 'build:sandbox:fast']
|
2025-07-01 15:14:39 -05:00
|
|
|
env:
|
2025-07-01 15:20:41 -05:00
|
|
|
- 'GEMINI_SANDBOX_IMAGE_TAG=$SHORT_SHA'
|
2025-07-01 15:14:39 -05:00
|
|
|
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
2025-07-01 14:34:40 -05:00
|
|
|
|
|
|
|
|
# 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: 'npm'
|
|
|
|
|
args: ['run', 'publish:sandbox']
|
|
|
|
|
env:
|
2025-07-01 15:14:39 -05:00
|
|
|
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
2025-07-01 14:34:40 -05:00
|
|
|
- 'GEMINI_SANDBOX_IMAGE_TAG=$SHORT_SHA'
|
|
|
|
|
|
|
|
|
|
options:
|
|
|
|
|
defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET
|
2025-07-01 15:14:39 -05:00
|
|
|
dynamicSubstitutions: true
|
|
|
|
|
|
|
|
|
|
substitutions:
|
|
|
|
|
_OFFICIAL_RELEASE: 'false'
|
|
|
|
|
_CONTAINER_TOOL: 'docker'
|