mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-13 21:07:00 -07:00
refactor(ci): simplify sandbox build process
- Replaces the `build_sandbox.js` script with a direct `docker build` command in the `build-and-publish` workflow. - Deletes the now-redundant `build_sandbox.js` and `sandbox_command.js` scripts. - This makes the sandbox build process more transparent and removes unnecessary complexity.
This commit is contained in:
@@ -104,8 +104,18 @@ jobs:
|
||||
|
||||
- name: 'Build and Push Sandbox Image'
|
||||
id: 'docker_build'
|
||||
env:
|
||||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||
shell: 'bash'
|
||||
run: |
|
||||
IMAGE_TAG="ghcr.io/${{ github.repository }}/sandbox:${{ needs.publish-bundle.outputs.version }}"
|
||||
node scripts/build_sandbox.js --image "${IMAGE_TAG}"
|
||||
docker build . \
|
||||
--file Dockerfile \
|
||||
--tag "${IMAGE_TAG}" \
|
||||
--build-arg CLI_VERSION=${{ needs.publish-bundle.outputs.version }} \
|
||||
--build-arg NPM_REGISTRY_SCOPE=${{ vars.NPM_REGISTRY_SCOPE }} \
|
||||
--build-arg NPM_REGISTRY_URL=${{ vars.NPM_REGISTRY_URL }} \
|
||||
--build-arg CLI_PACKAGE_NAME=${{ vars.CLI_PACKAGE_NAME }} \
|
||||
--secret id=GITHUB_TOKEN
|
||||
docker push "${IMAGE_TAG}"
|
||||
echo "uri=${IMAGE_TAG}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
Reference in New Issue
Block a user