Skip to content

Commit b018e2d

Browse files
Fix docker release yaml to use correct commands. (google-gemini#4025)
1 parent 8cf7f53 commit b018e2d

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.gcp/release-docker.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ steps:
4646
- |
4747
export GEMINI_SANDBOX_IMAGE_TAG=$$(cat /workspace/image_tag.txt)
4848
echo "Using Docker image tag for build: $$GEMINI_SANDBOX_IMAGE_TAG"
49-
npm run build:sandbox:fast
49+
npm run build:sandbox
5050
env:
5151
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
5252

@@ -58,13 +58,13 @@ steps:
5858
- -c
5959
- |
6060
set -e
61-
IMAGE_TAG=$(cat /workspace/image_tag.txt)
62-
BASE_IMAGE_URI=$(npm run -s config get sandboxImageUri)
63-
IMAGE_URI_NO_TAG=${BASE_IMAGE_URI%:*}
64-
FINAL_IMAGE_URI="${IMAGE_URI_NO_TAG}:${IMAGE_TAG}"
61+
IMAGE_TAG=$$(cat /workspace/image_tag.txt)
62+
BASE_IMAGE_URI=$$(npm run -s config get sandboxImageUri)
63+
IMAGE_URI_NO_TAG=$${BASE_IMAGE_URI%:*}
64+
FINAL_IMAGE_URI="$${IMAGE_URI_NO_TAG}:$${IMAGE_TAG}"
6565
66-
echo "Pushing sandbox image: ${FINAL_IMAGE_URI}"
67-
$_CONTAINER_TOOL push "${FINAL_IMAGE_URI}"
66+
echo "Pushing sandbox image: $${FINAL_IMAGE_URI}"
67+
$_CONTAINER_TOOL push "$${FINAL_IMAGE_URI}"
6868
env:
6969
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
7070

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"scripts": {
2020
"start": "node scripts/start.js",
2121
"debug": "cross-env DEBUG=1 node --inspect-brk scripts/start.js",
22+
"auth:npm": "npx google-artifactregistry-auth",
23+
"auth:docker": "gcloud auth configure-docker us-west1-docker.pkg.dev",
24+
"auth": "npm run auth:npm && npm run auth:docker",
2225
"generate": "node scripts/generate-git-commit-info.js",
2326
"build": "node scripts/build.js",
2427
"build:all": "npm run build && npm run build:sandbox",

0 commit comments

Comments
 (0)