Minimal Forgejo Actions template for Coolify deploy webhooks
Find a file
Artur Ferreira 24173fe5bb
Some checks are pending
Deploy to Coolify / deploy (push) Waiting to run
Initial Coolify deployment template
2026-06-01 14:00:04 +02:00
.forgejo/workflows Initial Coolify deployment template 2026-06-01 14:00:04 +02:00
public Initial Coolify deployment template 2026-06-01 14:00:04 +02:00
.env.example Initial Coolify deployment template 2026-06-01 14:00:04 +02:00
.gitignore Initial Coolify deployment template 2026-06-01 14:00:04 +02:00
Dockerfile Initial Coolify deployment template 2026-06-01 14:00:04 +02:00
README.md Initial Coolify deployment template 2026-06-01 14:00:04 +02:00

Template

Minimal Forgejo + Coolify deployment template.

This repository is intended to stay on Forgejo. Coolify should use it as an "Other Git Provider" repository:

  • Public repo: use http://192.168.1.113:3001/artur/template as the HTTPS/HTTP repository URL.
  • Private repo: add a deploy key in Coolify and Forgejo, then use ssh://git@192.168.1.113:222/artur/template.git.

Automatic deployments are handled by Forgejo Actions calling Coolify's Deploy Webhook.

Required Forgejo Secrets

Add these in Settings -> Actions -> Secrets:

Secret Purpose
COOLIFY_WEBHOOK Deploy Webhook URL from the Coolify resource
COOLIFY_TOKEN Coolify API token with deploy permission

The workflow calls:

curl --request GET "$COOLIFY_WEBHOOK" \
  --header "Authorization: Bearer $COOLIFY_TOKEN"

Coolify MCP

Coolify's MCP server is read-only. Enable it in Coolify with a root API token:

curl -X POST http://192.168.1.101:8000/api/v1/mcp/enable \
  -H "Authorization: Bearer <root-token>"

Then configure MCP clients with:

  • URL: http://192.168.1.101:8000/mcp
  • Header: Authorization: Bearer <read-token>

Use a token with read permission for MCP, not root.

Local Test

docker build -t template:local .
docker run --rm -p 8080:80 template:local