Fix docker release yaml to use correct commands. (#4025)

This commit is contained in:
N. Taylor Mullen 2025-07-12 23:46:49 -07:00 committed by GitHub
parent 8cf7f530e1
commit b018e2d3ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 7 deletions

View File

@ -46,7 +46,7 @@ steps:
- |
export GEMINI_SANDBOX_IMAGE_TAG=$$(cat /workspace/image_tag.txt)
echo "Using Docker image tag for build: $$GEMINI_SANDBOX_IMAGE_TAG"
npm run build:sandbox:fast
npm run build:sandbox
env:
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
@ -58,13 +58,13 @@ steps:
- -c
- |
set -e
IMAGE_TAG=$(cat /workspace/image_tag.txt)
BASE_IMAGE_URI=$(npm run -s config get sandboxImageUri)
IMAGE_URI_NO_TAG=${BASE_IMAGE_URI%:*}
FINAL_IMAGE_URI="${IMAGE_URI_NO_TAG}:${IMAGE_TAG}"
IMAGE_TAG=$$(cat /workspace/image_tag.txt)
BASE_IMAGE_URI=$$(npm run -s config get sandboxImageUri)
IMAGE_URI_NO_TAG=$${BASE_IMAGE_URI%:*}
FINAL_IMAGE_URI="$${IMAGE_URI_NO_TAG}:$${IMAGE_TAG}"
echo "Pushing sandbox image: ${FINAL_IMAGE_URI}"
$_CONTAINER_TOOL push "${FINAL_IMAGE_URI}"
echo "Pushing sandbox image: $${FINAL_IMAGE_URI}"
$_CONTAINER_TOOL push "$${FINAL_IMAGE_URI}"
env:
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'

View File

@ -19,6 +19,9 @@
"scripts": {
"start": "node scripts/start.js",
"debug": "cross-env DEBUG=1 node --inspect-brk scripts/start.js",
"auth:npm": "npx google-artifactregistry-auth",
"auth:docker": "gcloud auth configure-docker us-west1-docker.pkg.dev",
"auth": "npm run auth:npm && npm run auth:docker",
"generate": "node scripts/generate-git-commit-info.js",
"build": "node scripts/build.js",
"build:all": "npm run build && npm run build:sandbox",