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.
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:-2}"
|
|
|
|
docker build -f "$ROOT/ci/Dockerfile" -t "$IMAGE:$TAG" "$ROOT"
|
|
docker push "$IMAGE:$TAG"
|