No description
|
All checks were successful
Build and Publish / build (push) Successful in 9s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .forgejo/workflows | ||
| .idea | ||
| CLAUDE.md | ||
| Dockerfile | ||
| README.md | ||
runner-env
Docker image used as the environment for Forgejo Actions runners. It provides all the tools needed to build Java/Maven projects with a Node.js frontend and push Docker images.
What's included
| Tool | Version / Notes |
|---|---|
| Node.js | 20 (via node:20-bookworm-slim base) |
| npm | bundled with Node.js |
| Java | Temurin JDK 17 or 21 (see branches) |
| Maven | from Debian apt |
| Docker CLI | latest stable, no daemon |
| Git | from Debian apt |
| SSH client | for git push over SSH |
Branches & tags
| Branch | JDK | Published tag |
|---|---|---|
17 |
17 | git.midasvo.nl/midas/runner-env:17 |
21 |
21 | git.midasvo.nl/midas/runner-env:21 |
develop |
21 | git.midasvo.nl/midas/runner-env:develop |
Usage in Forgejo Actions
jobs:
build:
runs-on: your-runner-label
steps:
- uses: actions/checkout@v3
- name: Build and push
env:
DOCKER_API_VERSION: "1.43"
run: |
docker build -t your-image:tag .
docker push your-image:tag
Note: Set
DOCKER_API_VERSION: "1.43"when using Docker commands. The runner mounts the host Docker socket and the host daemon may be older than the CLI bundled in this image.
Building manually
docker build -t git.midasvo.nl/midas/runner-env:17 .
docker push git.midasvo.nl/midas/runner-env:17
CI
Pushing to any branch triggers a build and push via .forgejo/workflows/build.yml. The image tag matches the branch name.
Required repository secrets:
REGISTRY_USERNAMEREGISTRY_PASSWORD