Custom Forgejo Actions job image based on node:20-bookworm with Buildx pre-installed
- Dockerfile 100%
|
All checks were successful
Build and Push Job Image / build (push) Successful in 6m46s
|
||
|---|---|---|
| .forgejo/workflows | ||
| .gitignore | ||
| Dockerfile | ||
| README.md | ||
forgejo-job-node
Custom Forgejo Actions job image based on node:20-bookworm for linux/amd64 only.
Purpose
Provides a pre-configured Node.js 20 environment with Buildx pre-installed for use as a Forgejo Actions job container. Ships Buildx pre-pinned so that docker/setup-buildx-action@v3 can use the binary already on disk instead of downloading it from GitHub.
Architecture
- amd64 only — no ARM support. Built and published for
linux/amd64. - Base image pulled through Harbor proxy cache:
cr.ppvn.ru/docker-hub-proxy/library/node:20-bookworm - Published image:
cr.ppvn.ru/library/forgejo-job-node:20-bookworm-buildx
Pinned versions
| Component | Version |
|---|---|
| Node.js | 20 (bookworm base) |
| Buildx | v0.35.0 |
Local build and publish
# Build (on linux/amd64 host or with QEMU emulation)
docker build \
--platform linux/amd64 \
-t cr.ppvn.ru/library/forgejo-job-node:20-bookworm-buildx \
.
# Push to Harbor
docker push cr.ppvn.ru/library/forgejo-job-node:20-bookworm-buildx
CI/CD
The workflow in .forgejo/workflows/build.yml handles automated build and push on push to main (and other branches). It uses registry cache at cr.ppvn.ru/build-cache/library-forgejo-job-node:main.