Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this PR about?
Adds an optional Tag patterns field to the GitHub On Tag trigger for applications and Docker Compose services. Each service can deploy only when a pushed tag matches one of its configured names or patterns. Leaving the field empty preserves the existing behavior: every tag triggers deployment.
Why this is needed
A monorepo can contain several independently deployed services. Today, a new tag triggers every service configured for On Tag in that repository, even when the release concerns only one service. This creates unnecessary builds and deployments.
Exact names alone are not sufficient for repeated releases because Git tag names must be unique. Patterns such as
go-*allow successive releases (go-1,go-2,go-v1.2.3) without changing the Dokploy settings or reusing an existing tag. A shared pattern lets users release all services together when needed.Example
For a repository containing three services:
all-*, go-*all-*, node-one-*all-*, node-two-*go-1orgo-2: deploy only the Go API.node-one-1: deploy only Node service one.all-1: deploy all three services.The comma separates filters in Dokploy; the Git tag itself is a single name, such as
go-2. The wordallhas no special meaning: it works because the same pattern is configured on each service.Behavior and implementation
*wildcards.*matches zero or more characters; all other characters are literal. Matching is case-sensitive and covers the entire tag name.triggerTagsarrays on applications and Compose services, with an additive database migration and generated Drizzle snapshot.Validation
pnpm -r run typecheckpassed across all workspace projects.go-1webhook payload through the local HTTP endpoint: exactly one service was selected and its Docker deployment completed successfully.all-*routing is covered by webhook tests. External webhook delivery was blocked by a timeout in the development proxy/Tailscale connection, so this is not claimed as a successful end-to-end public-webhook test.Checklist
canarybranch.CONTRIBUTING.md.Screenshots
The GitHub On Tag settings now include optional patterns and a versioned-tag example.
The PR appears safe to merge, with no concrete correctness, security, migration, or persistence failures identified.
Summary
This PR adds optional, service-specific GitHub tag filters for applications and Compose services while preserving deploy-on-every-tag behavior when no filters are configured.
*wildcard matching.Reviews (1) · Last reviewed commit: "feat(github): filter tag-triggered deplo..."