Files
AudioManagerClient/scripts/build-ci-image.sh
T
TapTap 8f94bb18e7
CI / build (push) Successful in 1m43s
ci: bake the node and yarn toolchain into the image
The web build resolves com.yarnpkg:yarn from GitHub during configuration. A
run failed after two minutes with a GitHub read timeout, even though nothing
in the commit touched the Wasm target.

Run kotlinNodeJsSetup and kotlinYarnSetup during the image warm-up so node and
yarn come from the Gradle cache in GRADLE_USER_HOME instead of a fresh GitHub
download. Bump the image to audiomanager-client-ci:3.
2026-11-15 07:50:55 +00:00

13 lines
343 B
Bash
Executable File

#!/usr/bin/env bash
#
# Builds and pushes the CI job image used by .gitea/workflows/ci.yaml.
#
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
IMAGE="${CI_IMAGE:-gitea.tap-tap.win/taptap/audiomanager-client-ci}"
TAG="${1:-3}"
docker build -f "$ROOT/ci/Dockerfile" -t "$IMAGE:$TAG" "$ROOT"
docker push "$IMAGE:$TAG"