No description
- Dockerfile 100%
|
All checks were successful
Build and Publish / build (21, 21, base) (pull_request) Successful in 13m58s
Build and Publish / build (17, 17, base) (pull_request) Successful in 14m0s
Build and Publish / build (21, 21-android, android) (pull_request) Successful in 3m30s
Build and Publish / build (17, 17, base) (push) Successful in 2m29s
Build and Publish / build (21, 21, base) (push) Successful in 2m13s
Build and Publish / build (21, 21-android, android) (push) Successful in 2m32s
Build and Publish / build (25, 25, base) (pull_request) Successful in 12m37s
Build and Publish / build (25, 25, base) (push) Successful in 2m55s
New `android` Dockerfile stage on top of the JDK image: jq, python3, unzip and the Android SDK (cmdline-tools 23.0, platforms;android-36, build-tools;36.0.0) in /opt/android-sdk. Published as 21-android, so Android builds (midas-patches) no longer download ~250 MB of SDK per run while the plain JDK images stay as small as before. The build matrix now sets an explicit --target per image; without it docker would build the last (android) stage for every tag. Co-Authored-By: Claude Opus 5.5 <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 |
The 21-android image additionally has jq, python3, unzip and the Android SDK
(ANDROID_HOME=/opt/android-sdk, platforms;android-36, build-tools;36.0.0).
Use it with container: { image: git.midasvo.nl/midas/runner-env:21-android }.
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