Deploying build artifacts to Dokploy
Hi, I'm a new Dokploy user. I've successfully done deployments of static sites and by using dockerfiles. Now I want to deploy some existing applications which are being built using GitLab resulting in build artifacts that are curently being deployed using ssh. What's the most logical way to transition these deployments to Dokploy? I hope I don't have to translate my entire GitLab pipeline into a Dockerfile. I'd like to keep everything in GitLab and just deploy the build artifacts on Dokploy. Do I have to copy the artifacts to a container image and push that to a container registry so Dokploy can pull it? Or is there a more straightforward way to get my build artifacts deployed on Dokploy? Using Nixpacks seems obvious but it seems to me that the build would have to take place in Dokploy. Am I understanding this correctly or am I missing something?
4 Replies
I haven't used the gitlab artifacts, but if you build your image in your ci/cd and push to a registry, dokploy easily can pull and deploy your application
That I know but I was hoping for more direct solution. I think the most direct (e.g. least added overhead) is to add a
nixpacks.toml
file to the repo so Dokploy will do a build when I push changes. I just don't like that this would use resources on my production server for building.Well if you were to use github actions you can easily use this https://github.com/iloveitaly/github-action-nixpacks
GitHub
GitHub - iloveitaly/github-action-nixpacks: Build and push images w...
Build and push images with nixpacks. Contribute to iloveitaly/github-action-nixpacks development by creating an account on GitHub.
and then you just push the image to a registry and in dokploy just simple download the image