A Docker image for the Forgejo Runner providing the Rust cross-compiler https://github.com/cross-rs/cross
  • Shell 52.8%
  • Dockerfile 25.2%
  • Just 22%
Find a file
2026-04-17 16:05:40 +02:00
.forgejo/workflows Merge pull request 'chore(deps): update actions/cache action to v5' (#5) from renovate/actions-cache-5.x into next 2026-04-17 16:05:40 +02:00
examples feat: Implement Dockerfile 2026-04-17 14:35:15 +02:00
scripts feat: Implement Dockerfile 2026-04-17 14:35:15 +02:00
.dockerignore feat: Implement Dockerfile 2026-04-17 14:35:15 +02:00
.gitignore feat: Implement Dockerfile 2026-04-17 14:35:15 +02:00
.renovaterc feat: Implement Dockerfile 2026-04-17 14:35:15 +02:00
Dockerfile feat: Implement Dockerfile 2026-04-17 14:35:15 +02:00
Justfile feat: Implement Dockerfile 2026-04-17 14:35:15 +02:00
LICENSE feat: Implement Dockerfile 2026-04-17 14:35:15 +02:00
README.md feat: Implement Dockerfile 2026-04-17 14:35:15 +02:00

forgejo-actions-cross-image

A Docker image for the Forgejo Runner providing the Rust cross-compiler cross.

Tools required for basic operations in Forgejo Actions, such a nodejs, git and zstd (for actions/cache) are also included.

The image may be configured as a Runner label, or set manually in a workflow with container.image: git.sclu1034.dev/lucas/forgejo-actions-cross-image:latest. The workflow needs access to a Docker daemon, and you'll need to set CROSS_REMOTE=1 or CROSS_CONTAINER_IN_CONTAINER=1 depending on the exact setup.

Please check out the examples/.

Version number

The versioned tags follow the cross version. A revision number may be added if necessary.

Development

Building the image locally with just Docker works as usual.

The Forgejo Actions workflows utilize BuildKit to build the image, and Docker to test the image. A runner needs to be set up with https://git.sclu1034.dev/lucas/forgejo-actions-buildkit-image.

For running the workflows locally, the runner already injects the local Docker daemon socket, and the script scripts/forgejo-runner-exec wraps the forgejo-runner exec call to provide a BuildKit daemon.