quality / commitlint (push) Skipped
CD / update-wiki (push) Failing after 8s
quality / changes (push) Successful in 7s
quality / docker-check (push) Skipped
quality / web (push) Successful in 1m8s
quality / api (push) Successful in 41s
CD / quality (push) Successful in 2m0s
CD / publish (push) Failing after 11m24s
- Removed Dockerfile and Dockerfile.test as part of the transition to a pre-built image. - Updated .dockerignore and .gitignore to reflect new build context and ignored files. - Modified docker-compose.yml to use the new image for the application. - Enhanced documentation in AGENTS.md and README.md to include CI/CD details and release process. - Added new dependencies for commit linting and semantic release in package.json and pnpm-lock.yaml. This commit streamlines the Docker setup and improves the CI/CD workflow with Gitea Actions.
23 lines
765 B
Bash
23 lines
765 B
Bash
#!/usr/bin/env sh
|
|
# pnpm install из кэша Gitea (store + node_modules). Без повторного download при hit.
|
|
set -eu
|
|
: "${PNPM_STORE_DIR:?PNPM_STORE_DIR required — run scripts/ci/export-cache-env.sh first}"
|
|
|
|
export HUSKY=0
|
|
export COREPACK_HOME="${COREPACK_HOME:-${HOME:-/root}/.cache/node/corepack}"
|
|
mkdir -p "$PNPM_STORE_DIR" "$COREPACK_HOME"
|
|
corepack enable
|
|
pnpm config set store-dir "$PNPM_STORE_DIR"
|
|
|
|
echo "pnpm store: $(pnpm store path)"
|
|
echo "PNPM_CACHE_HIT=${PNPM_CACHE_HIT:-}"
|
|
|
|
if [ "${PNPM_CACHE_HIT:-}" = "true" ]; then
|
|
if pnpm install --frozen-lockfile --offline; then
|
|
echo "pnpm install --offline (cache hit)"
|
|
exit 0
|
|
fi
|
|
echo "offline install failed — prefer-offline"
|
|
fi
|
|
pnpm install --frozen-lockfile --prefer-offline
|