Add automated setup via API for Komodo and Gitea
Added: - setup-komodo.sh: Bash script for Komodo resource creation via API - setup-komodo.js: Node.js script for Komodo setup (no dependencies) - Updated SETUP_GUIDE.md with automated setup instructions Gitea Integration (completed via API): - ✓ Created Build webhook - ✓ Created Stack deploy webhook - ✓ Created Sync webhook Komodo Integration (automated via scripts): - Creates Build resource via API - Creates Resource Sync via API - Validates connection and lists servers Users can now run a single script to complete the entire setup!
This commit is contained in:
@@ -2,6 +2,51 @@
|
||||
|
||||
This guide will help you configure Komodo to work with your Gitea server.
|
||||
|
||||
## Automated Setup (Recommended)
|
||||
|
||||
Gitea webhooks have already been configured automatically! To complete the Komodo setup, run the provided setup script:
|
||||
|
||||
### Using Bash Script
|
||||
|
||||
```bash
|
||||
# Ensure environment variables are set
|
||||
export KOMODO_KEY="your-key"
|
||||
export KOMODO_SECRET="your-secret"
|
||||
|
||||
# Run the setup script on a machine with access to Komodo
|
||||
./setup-komodo.sh
|
||||
```
|
||||
|
||||
### Using Node.js Script
|
||||
|
||||
```bash
|
||||
# Ensure environment variables are set
|
||||
export KOMODO_KEY="your-key"
|
||||
export KOMODO_SECRET="your-secret"
|
||||
|
||||
# Run the setup script (uses built-in fetch, no dependencies needed)
|
||||
node setup-komodo.js
|
||||
```
|
||||
|
||||
The automated setup will:
|
||||
- ✓ Test connection to Komodo
|
||||
- ✓ Create Build resource
|
||||
- ✓ Create Resource Sync
|
||||
- Configure git provider (requires config file - see below)
|
||||
|
||||
### Webhooks Already Created
|
||||
|
||||
The following webhooks have been automatically configured in Gitea:
|
||||
- ✓ Build webhook: `http://komodo.internal:9120/listener/github/build/komodo-demo-build/build`
|
||||
- ✓ Stack webhook: `http://komodo.internal:9120/listener/github/stack/komodo-demo-stack/deploy`
|
||||
- ✓ Sync webhook: `http://komodo.internal:9120/listener/github/sync/komodo-demo-sync/sync`
|
||||
|
||||
---
|
||||
|
||||
## Manual Setup (Alternative)
|
||||
|
||||
If you prefer to set up manually or need to customize the configuration, follow the steps below.
|
||||
|
||||
## Summary
|
||||
|
||||
- **Gitea Host**: `gitea.straymoog.xyz`
|
||||
|
||||
Reference in New Issue
Block a user