Dokploy / Dokploy/dokploy

Preview deployments ignore configured build server and build registry

Open
#4,975 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-triage🔍
Dominant language
TypeScript
Stars
37.4k
Forks
3k
Avg merge
1d 3h
Merged PRs (30d)
73

Description

To Reproduce

Preview deployments do not inherit the application's configured build server and build registry.

The regular application is configured with:

  • custom build server
  • private Harbor build registry
  • Docker Swarm deployment cluster

Regular deployments build on the configured build server and push their image to Harbor. Preview deployments instead build on the application's deployment server and create a local-only image.

Current vs. Expected behavior
Current behavior

The preview build log ends with:

naming to docker.io/library/preview-testing-app-zwn41e-rp4jt8:latest
unpacking to docker.io/library/preview-testing-app-zwn41e-rp4jt8:latest

No registry login, tag or push is performed.

When Docker Swarm schedules the preview service on another node, the deployment fails with:

pull access denied for preview-testing-app-zwn41e-rp4jt8
repository does not exist or may require 'docker login'

The preview implementation currently explicitly sets application.buildRegistry, application.registry and application.rollbackRegistry to null. It also executes the build using application.serverId instead of application.buildServerId || application.serverId.

Expected behavior

Preview deployments should:

  1. Use the configured build server when present.
  2. Push the preview image to the configured build or cluster registry.
  3. Deploy the complete registry image reference to Docker Swarm.
  4. Pass the registry authentication when creating or updating the service.
  5. Store and clean up preview build logs and source files on the build server.
Provide environment information
Dokploy: v0.29.12
Docker Swarm with multiple nodes
External build server
Private Harbor registry
GitHub preview deployments
Which area(s) are affected? (Select all that apply)

Application, Docker

Are you deploying the applications where Dokploy is installed or on a remote server?

Both

Additional context

No response

Will you send a PR to fix it?

Yes

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests; start by tracing the preview deployment implementation and comparing it with the regular deployment path for build server, registry, Swarm service, logs, and source cleanup handling. Done means preview deployments honor configured build infrastructure, publish and reference the complete image, pass registry authentication, and clean up build-server artifacts.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, typescript
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.