fix(ci): swap docker:cli for node:20-bookworm to fix checkout failure #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ci-node-container"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
CI has been failing with:
actions/checkout@v4is a Node.js action.docker:cliis Alpine-based and has nonodebinary, so checkout fails immediately.This is the root cause behind the cascade in #18 — fixing safe.directory and runner user alignment unblocked us enough to reveal this next layer.
Fix
Swap
container: docker:cli→container: image: node:20-bookwormon both workflows.Add an "Install Docker CLI" step (via
apt-get install docker.io) before any Docker commands.DOCKER_HOST=tcp://dind:2375still propagates from the runner environment, so the DinD socket continues to work as before.Changes
.forgejo/workflows/build.yaml— main build workflow.forgejo/workflows/build-coder.yml— coder variant workflowBoth workflows get the identical fix. Closes #18.