Some checks failed
Release - Northern Thailand Ping River Monitor / Create Release (push) Successful in 7s
Security & Dependency Updates / Dependency Security Scan (push) Successful in 35s
Security & Dependency Updates / Check for Dependency Updates (push) Has been cancelled
Security & Dependency Updates / Code Quality Metrics (push) Has been cancelled
Security & Dependency Updates / Security Summary (push) Has been cancelled
Security & Dependency Updates / License Compliance (push) Has been cancelled
Release - Northern Thailand Ping River Monitor / Test Release Build (3.11) (push) Has been cancelled
Release - Northern Thailand Ping River Monitor / Test Release Build (3.12) (push) Has been cancelled
Release - Northern Thailand Ping River Monitor / Test Release Build (3.9) (push) Has been cancelled
Release - Northern Thailand Ping River Monitor / Build Release Images (push) Has been cancelled
Release - Northern Thailand Ping River Monitor / Security Scan (push) Has been cancelled
Release - Northern Thailand Ping River Monitor / Deploy Release (push) Has been cancelled
Release - Northern Thailand Ping River Monitor / Validate Release (push) Has been cancelled
Release - Northern Thailand Ping River Monitor / Notify Release (push) Has been cancelled
Release - Northern Thailand Ping River Monitor / Test Release Build (3.10) (push) Has been cancelled
Version Updates: - Core application: src/__init__.py, src/main.py, src/web_api.py - Package configuration: setup.py - Documentation: README.md, docs/GITEA_WORKFLOWS.md - Workflows: .gitea/workflows/docs.yml, .gitea/workflows/release.yml - Scripts: generate_badges.py, init_git scripts - Tests: test_integration.py - Deployment docs: GITEA_SETUP_SUMMARY.md, DEPLOYMENT_CHECKLIST.md Purpose: - Force new build process after workflow fixes - Test updated security.yml without YAML errors - Verify setup.py robustness improvements - Trigger clean CI/CD pipeline execution All version references synchronized at v3.1.3 Ready for new build and deployment testing
89 lines
1.6 KiB
Bash
89 lines
1.6 KiB
Bash
#!/bin/bash
|
|
# Git initialization script for Northern Thailand Ping River Monitor
|
|
|
|
echo "🏔️ Initializing Git repository for Northern Thailand Ping River Monitor"
|
|
|
|
# Initialize git repository
|
|
git init
|
|
|
|
# Add remote origin
|
|
git remote add origin https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor.git
|
|
|
|
# Create .gitignore if it doesn't exist
|
|
if [ ! -f .gitignore ]; then
|
|
echo "Creating .gitignore file..."
|
|
cat > .gitignore << 'EOF'
|
|
# Python
|
|
__pycache__/
|
|
*.py[cod]
|
|
*.so
|
|
.Python
|
|
build/
|
|
develop-eggs/
|
|
dist/
|
|
downloads/
|
|
eggs/
|
|
.eggs/
|
|
lib/
|
|
lib64/
|
|
parts/
|
|
sdist/
|
|
var/
|
|
wheels/
|
|
*.egg-info/
|
|
.installed.cfg
|
|
*.egg
|
|
|
|
# Virtual environments
|
|
.env
|
|
.venv
|
|
env/
|
|
venv/
|
|
ENV/
|
|
|
|
# IDE
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
|
|
# Logs
|
|
*.log
|
|
logs/
|
|
|
|
# Database files
|
|
*.db
|
|
*.sqlite
|
|
*.sqlite3
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
EOF
|
|
fi
|
|
|
|
# Add all files
|
|
git add .
|
|
|
|
# Initial commit
|
|
git commit -m "Initial commit: Northern Thailand Ping River Monitor v3.1.3
|
|
|
|
Features:
|
|
- Real-time water level monitoring for Ping River Basin
|
|
- 16 monitoring stations from Chiang Dao to Nakhon Sawan
|
|
- FastAPI web interface with station management
|
|
- Multi-database support (SQLite, MySQL, PostgreSQL, InfluxDB, VictoriaMetrics)
|
|
- Comprehensive monitoring and health checks
|
|
- Docker deployment with Grafana integration
|
|
- Production-ready architecture with CI/CD pipeline"
|
|
|
|
echo "✅ Git repository initialized successfully!"
|
|
echo ""
|
|
echo "Next steps:"
|
|
echo "1. Review and edit .env file with your configuration"
|
|
echo "2. Push to remote repository:"
|
|
echo " git push -u origin main"
|
|
echo ""
|
|
echo "3. Start the application:"
|
|
echo " make run-api"
|
|
echo " # or: python run.py --web-api" |