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.
26 lines
786 B
Bash
26 lines
786 B
Bash
#!/usr/bin/env sh
|
|
# Абсолютные пути для actions/cache: на act_runner «~» часто не раскрывается → cache miss.
|
|
set -eu
|
|
: "${GITHUB_ENV:?GITHUB_ENV required (Gitea/GitHub Actions)}"
|
|
|
|
HOME_DIR="${HOME:-}"
|
|
if [ -z "$HOME_DIR" ]; then
|
|
HOME_DIR="$(getent passwd "$(id -u)" 2>/dev/null | cut -d: -f6 || true)"
|
|
fi
|
|
HOME_DIR="${HOME_DIR:-/root}"
|
|
|
|
PNPM_STORE_DIR="${HOME_DIR}/.pnpm-store"
|
|
COREPACK_HOME="${HOME_DIR}/.cache/node/corepack"
|
|
|
|
mkdir -p "$PNPM_STORE_DIR" "$COREPACK_HOME"
|
|
|
|
{
|
|
echo "HOME_DIR=${HOME_DIR}"
|
|
echo "PNPM_STORE_DIR=${PNPM_STORE_DIR}"
|
|
echo "COREPACK_HOME=${COREPACK_HOME}"
|
|
} >> "$GITHUB_ENV"
|
|
|
|
echo "cache-env HOME_DIR=${HOME_DIR}"
|
|
echo "cache-env PNPM_STORE_DIR=${PNPM_STORE_DIR}"
|
|
echo "cache-env COREPACK_HOME=${COREPACK_HOME}"
|