Files
TapTap a0434d974f
CI / test (push) Successful in 1m37s
CI / chart (push) Successful in 2s
CI / image (push) Failing after 2m42s
ci: build images with kaniko inside the job image
The runner does not expose its Docker socket to job containers, so the
image job could not run docker build. Include the kaniko executor in the
CI image and build/push directly from the job; docker login only writes
the registry credentials file.

Bump the CI image tag to 2.
2026-11-13 13:52:49 +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:-2}"
docker build -f "$ROOT/ci/Dockerfile" -t "$IMAGE:$TAG" "$ROOT"
docker push "$IMAGE:$TAG"