fix: speed up claude-dev base image availability
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Failing after 33s
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Failing after 33s
Switch claude-dev to node:20-bookworm-slim and preload the base image from server2 in CI to avoid slow pulls on the NAS runner. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -52,6 +52,12 @@ jobs:
|
|||||||
echo "CLAUDE_DEV_IMAGE_TAG=${image_tag}" >> "$GITHUB_ENV"
|
echo "CLAUDE_DEV_IMAGE_TAG=${image_tag}" >> "$GITHUB_ENV"
|
||||||
echo "CLAUDE_DEV_IMAGE=${image_ref}" >> "$GITHUB_ENV"
|
echo "CLAUDE_DEV_IMAGE=${image_ref}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
- name: Preload base image from server2
|
||||||
|
if: env.ROLLBACK_ONLY == '0'
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
ssh -o StrictHostKeyChecking=accept-new server2 "podman pull docker.io/library/node:20-bookworm-slim >/dev/null && podman save docker.io/library/node:20-bookworm-slim" | docker load
|
||||||
|
|
||||||
- name: Build claude-dev image
|
- name: Build claude-dev image
|
||||||
if: env.ROLLBACK_ONLY == '0'
|
if: env.ROLLBACK_ONLY == '0'
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:20-bookworm
|
FROM node:20-bookworm-slim
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user