mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
de duplicate docker file.
This commit is contained in:
@@ -25,7 +25,7 @@ steps:
|
|||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
IMAGE_TAG="$SHORT_SHA" # Default to SHA
|
IMAGE_TAG="$SHORT_SHA" # Default to SHA
|
||||||
if [[ "$TAG_NAME" == *"+nightly"* ]]; then
|
if [[ "$TAG_NAME" == *"-nightly"* ]]; then
|
||||||
echo "Nightly release detected."
|
echo "Nightly release detected."
|
||||||
IMAGE_TAG="${TAG_NAME#v}"
|
IMAGE_TAG="${TAG_NAME#v}"
|
||||||
elif [[ "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
elif [[ "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
@@ -44,17 +44,8 @@ steps:
|
|||||||
args:
|
args:
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
export GEMINI_SANDBOX_IMAGE_TAG="$SHORT_SHA" # Default to SHA
|
export GEMINI_SANDBOX_IMAGE_TAG=$(cat /workspace/image_tag.txt)
|
||||||
if [[ "$TAG_NAME" == *"-nightly"* ]]; then
|
echo "Using Docker image tag for build: $GEMINI_SANDBOX_IMAGE_TAG"
|
||||||
echo "Nightly release detected."
|
|
||||||
export GEMINI_SANDBOX_IMAGE_TAG="${TAG_NAME#v}"
|
|
||||||
elif [[ "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
||||||
echo "Official release detected."
|
|
||||||
export GEMINI_SANDBOX_IMAGE_TAG="${TAG_NAME#v}"
|
|
||||||
else
|
|
||||||
echo "Development/RC release detected. Using commit SHA as tag."
|
|
||||||
fi
|
|
||||||
echo "Using Docker image tag: $GEMINI_SANDBOX_IMAGE_TAG"
|
|
||||||
npm run build:sandbox:fast
|
npm run build:sandbox:fast
|
||||||
env:
|
env:
|
||||||
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
||||||
@@ -66,17 +57,8 @@ steps:
|
|||||||
args:
|
args:
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
export GEMINI_SANDBOX_IMAGE_TAG="$SHORT_SHA" # Default to SHA
|
export GEMINI_SANDBOX_IMAGE_TAG=$(cat /workspace/image_tag.txt)
|
||||||
if [[ "$TAG_NAME" == *"-nightly"* ]]; then
|
echo "Using Docker image tag for publish: $GEMINI_SANDBOX_IMAGE_TAG"
|
||||||
echo "Nightly release detected."
|
|
||||||
export GEMINI_SANDBOX_IMAGE_TAG="${TAG_NAME#v}"
|
|
||||||
elif [[ "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
||||||
echo "Official release detected."
|
|
||||||
export GEMINI_SANDBOX_IMAGE_TAG="${TAG_NAME#v}"
|
|
||||||
else
|
|
||||||
echo "Development/RC release detected. Using commit SHA as tag."
|
|
||||||
fi
|
|
||||||
echo "Using Docker image tag: $GEMINI_SANDBOX_IMAGE_TAG"
|
|
||||||
npm run publish:sandbox
|
npm run publish:sandbox
|
||||||
env:
|
env:
|
||||||
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@
|
|||||||
"publish:release": "npm run prepare:package && npm run build:packages && npm run build:sandbox:fast && npm run publish:sandbox && npm run publish:npm",
|
"publish:release": "npm run prepare:package && npm run build:packages && npm run build:sandbox:fast && npm run publish:sandbox && npm run publish:npm",
|
||||||
"prepublishOnly": "node scripts/check-versions.js && node scripts/prepublish.js",
|
"prepublishOnly": "node scripts/check-versions.js && node scripts/prepublish.js",
|
||||||
"release:version": "node scripts/version.js",
|
"release:version": "node scripts/version.js",
|
||||||
"tag:release:nightly": "TAG_NAME=\"v$(node -p \"require('./package.json').version\")-nightly.$(date -u +%Y%m%d).$(git rev-parse --short HEAD)\"; git tag -a $TAG_NAME -m '' && git push origin $TAG_NAME",
|
"tag:release:nightly": "TAG_NAME=\"v$(node -p \"require('./package.json').version\")-nightly.$(date -u +%y%m%d).$(git rev-parse --short HEAD)\"; git tag -a $TAG_NAME -m '' && git push origin $TAG_NAME",
|
||||||
"check:versions": "node scripts/check-versions.js",
|
"check:versions": "node scripts/check-versions.js",
|
||||||
"publish:actions-release": "npm run prepare:package && npm run build:packages && npm run publish:npm"
|
"publish:actions-release": "npm run prepare:package && npm run build:packages && npm run publish:npm"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user