Scala sbt and zulu-openjdk-alpine
A minimal sbt alpine docker image based on and azul/zulu-openjdk-alpine:17
current environment parameters (can be configured)
SCALA_VERSION=2.13.16
SBT_VERSION=1.11.4docker build --platform linux/amd64 --tag=harrylaou/scala-sbt-zulu-openjdk-alpine:xxx .--platform linux/amd64 is necessary to build the correct version to be run for gitlab ci
docker push harrylaou/scala-sbt-zulu-openjdk-alpine:xxxThis image is automatically built daily to ensure it stays updated with the latest base image security patches and updates. The automated build system:
- Daily Builds: Runs every day at 2 AM UTC
- Smart Detection: Only rebuilds when the base image
azul/zulu-openjdk-alpine:17has been updated - Multi-Platform: Builds for both
linux/amd64andlinux/arm64platforms - Version Tagging: Creates multiple tags for each build:
latest- Most recent buildYYYY-MM-DD- Date-based tag for the buildSCALA_VERSION-SBT_VERSION- Version-specific tagSCALA_VERSION-SBT_VERSION-YYYY-MM-DD- Combined version and date tag
You can manually trigger a build through the GitHub Actions interface or check if a rebuild is needed:
# Check if base image has been updated (requires Docker and jq)
./.github/workflows/check-base-update.shCurrent build status and history can be viewed in the GitHub Actions tab.