Skip to content

Commit 1dab6ba

Browse files
ci: seed antigravity CLI auth tokens in Cloud Build step
1 parent 0d14498 commit 1dab6ba

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

cloudbuild.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@ steps:
8383
# Maps the decrypted DB_PASSWORD to the exact variable expected by gemini_cli and extension skills
8484
export CLOUD_SQL_POSTGRES_PASSWORD=$$DB_PASSWORD
8585
86+
# Seed agy auth: this step overrides the image ENTRYPOINT (entrypoint: bash),
87+
# so entrypoint.sh never runs -- seed the token files here instead. HOME is
88+
# /builder/home in a Cloud Build step, which is exactly where the harness reads.
89+
AGY_DIR="$$HOME/.gemini/antigravity-cli"
90+
mkdir -p "$$AGY_DIR"
91+
printf '%s' "$$AGY_OAUTH_TOKEN" > "$$AGY_DIR/antigravity-oauth-token"
92+
printf '%s' "$$AGY_INSTALLATION_ID" > "$$AGY_DIR/installation_id"
93+
chmod 600 "$$AGY_DIR/antigravity-oauth-token" "$$AGY_DIR/installation_id"
94+
8695
# Combine CI metadata with all available run configs
8796
for config in /workspace/evals/*run_config.yaml; do
8897
if [ -f "$config" ]; then

0 commit comments

Comments
 (0)