ci: use a prebuilt image with every pipeline dependency
CI / test (push) Successful in 1m52s
CI / chart (push) Successful in 3s
CI / image (push) Failing after 2s

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.
This commit is contained in:
TapTap committed 2026-11-13 13:37:15 +00:00
1 parent d812e7644f
commit 4c6f1c8fe8
6 files changed
+103 -38

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#!/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"