Files
AudioManager/scripts/build-ci-image.sh
T
TapTap 4c6f1c8fe8
CI / test (push) Successful in 1m52s
CI / chart (push) Successful in 3s
CI / image (push) Failing after 2s
ci: use a prebuilt image with every pipeline dependency
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.
2026-11-13 13:37:15 +00:00

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"