Skip to content

Commit e993955

Browse files
author
Mauricio Siu
committed
Merge branch 'canary' into feat/top-loading-progress-bar
2 parents e4aefe7 + caf0aa6 commit e993955

File tree

216 files changed

+95954
-4663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+95954
-4663
lines changed

.github/pull_request_template.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Please describe in a short paragraph what this PR is about.
66

77
Before submitting this PR, please make sure that:
88

9-
- [] You created a dedicated branch based on the `canary` branch.
10-
- [] You have read the suggestions in the CONTRIBUTING.md file https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md#pull-request
11-
- [] You have tested this PR in your local instance.
9+
- [ ] You created a dedicated branch based on the `canary` branch.
10+
- [ ] You have read the suggestions in the CONTRIBUTING.md file https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md#pull-request
11+
- [ ] You have tested this PR in your local instance.
1212

1313
## Issues related (if applicable)
1414

.github/workflows/pull-request.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,32 @@ jobs:
2020
with:
2121
node-version: 20.16.0
2222
cache: "pnpm"
23+
24+
- name: Install Nixpacks
25+
if: matrix.job == 'test'
26+
run: |
27+
export NIXPACKS_VERSION=1.39.0
28+
curl -sSL https://nixpacks.com/install.sh | bash
29+
echo "Nixpacks installed $NIXPACKS_VERSION"
30+
31+
- name: Install Railpack
32+
if: matrix.job == 'test'
33+
run: |
34+
export RAILPACK_VERSION=0.15.0
35+
curl -sSL https://railpack.com/install.sh | bash
36+
echo "Railpack installed $RAILPACK_VERSION"
37+
38+
- name: Add build tools to PATH
39+
if: matrix.job == 'test'
40+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
41+
42+
- name: Initialize Docker Swarm
43+
if: matrix.job == 'test'
44+
run: |
45+
docker swarm init
46+
docker network create --driver overlay dokploy-network || true
47+
echo "✅ Docker Swarm initialized"
48+
2349
- run: pnpm install --frozen-lockfile
2450
- run: pnpm server:build
2551
- run: pnpm ${{ matrix.job }}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Generate and Sync OpenAPI
2+
3+
on:
4+
push:
5+
branches:
6+
- canary
7+
- main
8+
paths:
9+
- 'apps/dokploy/server/api/routers/**'
10+
- 'packages/server/src/services/**'
11+
- 'packages/server/src/db/schema/**'
12+
13+
workflow_dispatch:
14+
15+
jobs:
16+
generate-and-commit:
17+
name: Generate OpenAPI and commit to Dokploy repo
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout Dokploy repository
21+
uses: actions/checkout@v4
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
- uses: pnpm/action-setup@v4
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: 20.16.0
28+
cache: "pnpm"
29+
30+
- name: Install dependencies
31+
run: pnpm install --frozen-lockfile
32+
33+
- name: Generate OpenAPI specification
34+
run: |
35+
pnpm generate:openapi
36+
37+
# Verifica que se generó correctamente
38+
if [ ! -f openapi.json ]; then
39+
echo "❌ openapi.json not found"
40+
exit 1
41+
fi
42+
43+
echo "✅ OpenAPI specification generated successfully"
44+
45+
- name: Sync to website repository
46+
run: |
47+
# Clona el repositorio de website
48+
git clone https://x-access-token:${{ secrets.DOCS_SYNC_TOKEN }}@github.com/dokploy/website.git website-repo
49+
50+
cd website-repo
51+
52+
# Copia el openapi.json al website (sobrescribe)
53+
mkdir -p apps/docs/public
54+
cp -f ../openapi.json apps/docs/public/openapi.json
55+
56+
# Configura git
57+
git config user.name "Dokploy Bot"
58+
git config user.email "bot@dokploy.com"
59+
60+
# Agrega y commitea siempre
61+
git add apps/docs/public/openapi.json
62+
git commit -m "chore: sync OpenAPI specification [skip ci]" \
63+
-m "Source: ${{ github.repository }}@${{ github.sha }}" \
64+
-m "Updated: $(date -u +'%Y-%m-%d %H:%M:%S UTC')" \
65+
--allow-empty
66+
67+
git push
68+
69+
echo "✅ OpenAPI synced to website successfully"
70+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ node_modules
1313
.env.test.local
1414
.env.production.local
1515

16+
openapi.json
17+
1618
# Testing
1719
coverage
1820

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ COPY --from=build /prod/dokploy/node_modules ./node_modules
4646

4747

4848
# Install docker
49-
RUN curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh && rm get-docker.sh && curl https://rclone.org/install.sh | bash
49+
RUN curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh --version 28.5.2 && rm get-docker.sh && curl https://rclone.org/install.sh | bash
5050

5151
# Install Nixpacks and tsx
5252
# | VERBOSE=1 VERSION=1.21.0 bash

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ For detailed documentation, visit [docs.dokploy.com](https://docs.dokploy.com).
7777
<div>
7878
<a href="https://www.hostinger.com/vps-hosting?ref=dokploy"><img src=".github/sponsors/hostinger.jpg" alt="Hostinger" width="300"/></a>
7979
<a href="https://www.lxaer.com/?ref=dokploy"><img src=".github/sponsors/lxaer.png" alt="LX Aer" width="100"/></a>
80+
<a href="https://www.lambdatest.com/?utm_source=dokploy&utm_medium=sponsor" target="_blank">
81+
<img src="https://www.lambdatest.com/blue-logo.png" width="450" height="100" />
82+
</a>
83+
8084
</div>
8185

8286
<!-- Premium Supporters 🥇 -->

apps/api/src/utils.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {
2-
deployRemoteApplication,
3-
deployRemoteCompose,
4-
deployRemotePreviewApplication,
5-
rebuildRemoteApplication,
6-
rebuildRemoteCompose,
2+
deployApplication,
3+
deployCompose,
4+
deployPreviewApplication,
5+
rebuildApplication,
6+
rebuildCompose,
77
updateApplicationStatus,
88
updateCompose,
99
updatePreviewDeployment,
@@ -16,13 +16,13 @@ export const deploy = async (job: DeployJob) => {
1616
await updateApplicationStatus(job.applicationId, "running");
1717
if (job.server) {
1818
if (job.type === "redeploy") {
19-
await rebuildRemoteApplication({
19+
await rebuildApplication({
2020
applicationId: job.applicationId,
2121
titleLog: job.titleLog || "Rebuild deployment",
2222
descriptionLog: job.descriptionLog || "",
2323
});
2424
} else if (job.type === "deploy") {
25-
await deployRemoteApplication({
25+
await deployApplication({
2626
applicationId: job.applicationId,
2727
titleLog: job.titleLog || "Manual deployment",
2828
descriptionLog: job.descriptionLog || "",
@@ -36,13 +36,13 @@ export const deploy = async (job: DeployJob) => {
3636

3737
if (job.server) {
3838
if (job.type === "redeploy") {
39-
await rebuildRemoteCompose({
39+
await rebuildCompose({
4040
composeId: job.composeId,
4141
titleLog: job.titleLog || "Rebuild deployment",
4242
descriptionLog: job.descriptionLog || "",
4343
});
4444
} else if (job.type === "deploy") {
45-
await deployRemoteCompose({
45+
await deployCompose({
4646
composeId: job.composeId,
4747
titleLog: job.titleLog || "Manual deployment",
4848
descriptionLog: job.descriptionLog || "",
@@ -55,7 +55,7 @@ export const deploy = async (job: DeployJob) => {
5555
});
5656
if (job.server) {
5757
if (job.type === "deploy") {
58-
await deployRemotePreviewApplication({
58+
await deployPreviewApplication({
5959
applicationId: job.applicationId,
6060
titleLog: job.titleLog || "Preview Deployment",
6161
descriptionLog: job.descriptionLog || "",

apps/dokploy/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
DATABASE_URL="postgres://dokploy:amukds4wi9001583845717ad2@localhost:5432/dokploy"
22
PORT=3000
3-
NODE_ENV=development
3+
NODE_ENV=development

0 commit comments

Comments
 (0)