No description
  • Dockerfile 100%
Find a file
Midas van Oene 144b4f6adf
All checks were successful
Build and Publish / build (17) (push) Successful in 3m49s
Build and Publish / build (21) (push) Successful in 3m29s
Build and Publish / build (25) (push) Successful in 2m22s
Consolidate JDK branches into single parameterized Dockerfile + matrix build
Dockerfile now uses ARG JDK_VERSION and the Forgejo workflow builds
{17,21,25} in a matrix, publishing :17/:21/:25 from develop. The
17/21/25 branches are now redundant.
2026-04-20 19:23:06 +02:00
.forgejo/workflows Consolidate JDK branches into single parameterized Dockerfile + matrix build 2026-04-20 19:23:06 +02:00
.idea intial 2026-03-08 10:15:55 +01:00
CLAUDE.md Consolidate JDK branches into single parameterized Dockerfile + matrix build 2026-04-20 19:23:06 +02:00
Dockerfile Consolidate JDK branches into single parameterized Dockerfile + matrix build 2026-04-20 19:23:06 +02:00
README.md Add README and CLAUDE.md 2026-03-08 11:11:33 +01:00

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_USERNAME
  • REGISTRY_PASSWORD