Files
redwoodjs__local-ci/scripts/local-ci-dev.sh
T
Peter Pistorius 417bd260b6 Rename Agent CI to Local CI and support private images (#385)
* Support private workflow container images

* Resolve private image expression contexts

* feat: rename Agent CI to Local CI
2026-08-06 22:52:39 +02:00

27 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
# Dev-only wrapper: runs local-ci against local development code instead of
# the published package. Uses Node's native TypeScript support (Node >=24).
# Not intended for end users.
set -euo pipefail
SOURCE="${BASH_SOURCE[0]}"
while [ -L "$SOURCE" ]; do
DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
SOURCE="$(readlink "$SOURCE")"
[[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE"
done
SCRIPT_DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
if [[ "${LOCAL_CI_FORCE_RUST:-}" == "1" && "${LOCAL_CI_FORCE_TYPESCRIPT:-}" != "1" && "${LOCAL_CI_FORCE_TS:-}" != "1" ]]; then
cargo build --manifest-path "$REPO_ROOT/Cargo.toml" -p local-ci
exec "$REPO_ROOT/target/debug/local-ci" "$@"
fi
# Build dtu-github-actions (suppress pnpm lifecycle noise)
pnpm --silent --dir "$REPO_ROOT/packages/dtu-github-actions" run build 2>/dev/null || \
pnpm --dir "$REPO_ROOT/packages/dtu-github-actions" run build
# Run CLI from the caller's working directory
exec node "$REPO_ROOT/packages/cli/src/cli.ts" "$@"