Fix docker release yaml to use correct commands. (#4025)
This commit is contained in:
parent
8cf7f530e1
commit
b018e2d3ad
|
@ -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'
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue