mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 09:17:53 +00:00
fix: set .npmrc in HOME dir before publishing (#206)
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
@gemini-code:registry=https://us-west1-npm.pkg.dev/gemini-code-dev/gemini-code/
|
||||
//us-west1-npm.pkg.dev/gemini-code-dev/gemini-code/:always-auth=true
|
||||
@@ -23,4 +23,5 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN --mount=type=secret,id=npmrc,dst=/root/.npmrc npm install -g @gemini-code/cli@${CLI_VERSION} --verbose
|
||||
|
||||
ENTRYPOINT 'gemini-code'
|
||||
|
||||
@@ -49,6 +49,4 @@ if [ -n "${COLORTERM:-}" ]; then run_args+=(--env COLORTERM="$COLORTERM"); fi
|
||||
# this is the preferred mechanism to detect if inside container/sandbox
|
||||
run_args+=(--env "SANDBOX=$IMAGE:$TAG-$INDEX")
|
||||
|
||||
node_args=("$CLI_PATH" "$@")
|
||||
|
||||
docker run "${run_args[@]}" --init --workdir "$WORKDIR" "$REGISTRY/$IMAGE:$TAG" node "${node_args[@]}"
|
||||
docker run "${run_args[@]}" --init --workdir "$WORKDIR" "$REGISTRY/$IMAGE:$TAG"
|
||||
Reference in New Issue
Block a user