Why are tag events not triggering automatic builds with Codeberg?
Last updated: June 29, 2026
Context
When using Codeberg as your Git repository provider with Codemagic, you may find that while push events successfully trigger automatic builds, tag events do not work even though webhooks are being received and acknowledged by Codemagic. The build configuration may show "Welcome to Codemagic!" instead of triggering the expected build.
Answer
This issue occurs due to incompatibility between Codeberg's webhook event headers and Codemagic's supported event types.
Root Cause:
Codeberg sends different webhook headers for different events:
X-Github-Event: createfor tag creationX-Github-Event: pushfor push events
However, Codemagic only supports push (for both push and tag events) and pull_request events. This is why your webhook is detected but not processed when using tag events.
Resolution:
Unfortunately, there is currently no workaround for this compatibility issue. To resolve this problem, you would need to:
Contact Codeberg support to request they modify their webhook headers to send
X-Github-Event: pushfor tag eventsConsider using push events instead of tag events for triggering builds
Alternatively, consider migrating to a Git provider that is fully compatible with Codemagic's webhook requirements
This is a known limitation when using Codeberg with Codemagic, and the issue needs to be addressed on Codeberg's side to achieve full compatibility.