erpnext/scripts/ci/jenkins-run.sh
epistemophiliac 17c2c5ead8 Add custom Frappe image build with HRMS, Lending, and LMS.
Jenkins builds from apps.json, pushes to Forgejo registry, and archives Coolify image tags; compose installs all apps on first site creation.
2026-06-16 19:10:17 -04:00

24 lines
851 B
Bash
Executable file

#!/usr/bin/env bash
# Local CI. Full image build + push: BUILD_IMAGE=1 REGISTRY_USER=... REGISTRY_PASSWORD=... bash scripts/ci/jenkins-run.sh
set -euo pipefail
echo "=== erpnext CI (local) ==="
echo "commit: $(git rev-parse --short HEAD 2>/dev/null || echo unknown)"
chmod +x scripts/ci/*.sh
bash scripts/ci/ci-readiness.sh .
bash scripts/ci/validate-docker-compose.sh .
bash scripts/ci/jenkins-bootstrap.sh
bash scripts/ci/jenkins-compose-validate.sh
if [ "${BUILD_IMAGE:-0}" = "1" ]; then
bash scripts/ci/jenkins-build-image.sh
if [ -n "${REGISTRY_USER:-}" ] && [ -n "${REGISTRY_PASSWORD:-}" ]; then
bash scripts/ci/jenkins-push-image.sh
bash scripts/ci/jenkins-verify-image.sh
else
echo "Skip push: set REGISTRY_USER and REGISTRY_PASSWORD to publish"
fi
else
echo "Skip image build (set BUILD_IMAGE=1 to build locally)"
fi