Add ci/Dockerfile (JDK 21, Gradle 8.14.3, ffmpeg, sqlite3, node, docker CLI and Helm) and build it as taptap/audiomanager-ci. Workflows now start from that image instead of downloading a JDK and installing packages on every run. The registry namespace is the lowercased package owner `taptap`, not `tap-tap`; update the chart, workflow and documentation accordingly. The image build uses plain docker build/push, since the job container starts with no buildx plugin.
14 lines
418 B
Bash
Executable File
14 lines
418 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Builds and pushes the CI job image used by .gitea/workflows/ci.yaml.
|
|
# Run this once after changing ci/Dockerfile, or when dependency versions change.
|
|
#
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
IMAGE="${CI_IMAGE:-gitea.tap-tap.win/taptap/audiomanager-ci}"
|
|
TAG="${1:-1}"
|
|
|
|
docker build -f "$ROOT/ci/Dockerfile" -t "$IMAGE:$TAG" "$ROOT"
|
|
docker push "$IMAGE:$TAG"
|