[Feature Request] Support selecting a Git tag as the source for Application and Docker Compose deployments

Đang mở
#6,001 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
34/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker-compose, git, github, gitlab, typescript
Lĩnh vực
backend, devops, frontend

Hướng nghiên cứu

Start by tracing how the branch selection in the repository provider settings for Applications and Docker Compose services is stored and passed to the deployment step, since the tag selector would follow the same path. Check how each provider (GitHub, GitLab, Bitbucket, Gitea, custom Git) lists branches today, then confirm with maintainers the intended scope before coding. Done means a saved tag is checked out on deploy and existing services still default to branches.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
What problem will this feature address?

Repository provider settings currently allow selecting a branch as the deployment source, but do not provide a selector for deploying a specific Git tag.

For projects that use Git tags to identify releases, users need a way to select the exact release to deploy through the Dokploy UI, including deploying an older tagged version.

The existing "On Tag" trigger controls when a deployment starts. This request concerns selecting which Git reference supplies the code.

Describe the solution you'd like

Add a "Deploy from" selector to the repository provider settings for Applications and Docker Compose services:

  • Branch: preserve the existing branch selection and deployment workflow.
  • Tag: fetch the repository's available tags from the configured provider and display them in a separate selector.

When a tag is selected and saved, deployments should fetch and check out that specific tag. The selection should persist, and existing services should continue using branches by default.

The proposed scope includes GitHub, GitLab, Bitbucket, Gitea, and custom Git repositories.

Describe alternatives you've considered

Creating a branch for each release or using an external CI pipeline to build and deploy a Docker image. These approaches add steps compared with selecting an existing Git tag directly in Dokploy.

Additional context

I have a local implementation with automated tests and local deployment validation for both Applications and Docker Compose services.

Before submitting a PR targeting canary, I would like to confirm whether this workflow and scope align with the maintainers' expectations.

Related requests with different scopes:

  • #4690 requests using the Git tag name as the image tag when pushing to a registry.
  • #1942 requests deploying a prebuilt Docker image specified through an API or webhook.

This proposal concerns selecting a Git tag as the source code reference.

Will you send a PR to implement it?

Yes

Ngôn ngữ chính
TypeScript
Star
38.8k
Fork
3.2k
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
110

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Dokploy/dokploy

Tất cả issue của Dokploy/dokploy

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.