mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-12 06:55:19 +00:00
feat: add build server properties to application models and enhance server creation
- Introduced new properties (buildServerId, buildRegistryId, buildRegistry) in the ApplicationNested model for better build server configuration. - Updated the CreateServer component to include a default server type for deployments. - Improved logging messages for clarity during the image upload process.
This commit is contained in:
@@ -30,6 +30,9 @@ const baseApp: ApplicationNested = {
|
|||||||
previewLabels: [],
|
previewLabels: [],
|
||||||
herokuVersion: "",
|
herokuVersion: "",
|
||||||
giteaBranch: "",
|
giteaBranch: "",
|
||||||
|
buildServerId: "",
|
||||||
|
buildRegistryId: "",
|
||||||
|
buildRegistry: null,
|
||||||
giteaBuildPath: "",
|
giteaBuildPath: "",
|
||||||
previewRequireCollaboratorPermissions: false,
|
previewRequireCollaboratorPermissions: false,
|
||||||
giteaId: "",
|
giteaId: "",
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ const baseApp: ApplicationNested = {
|
|||||||
giteaRepository: "",
|
giteaRepository: "",
|
||||||
giteaOwner: "",
|
giteaOwner: "",
|
||||||
giteaBranch: "",
|
giteaBranch: "",
|
||||||
|
buildServerId: "",
|
||||||
|
buildRegistryId: "",
|
||||||
|
buildRegistry: null,
|
||||||
giteaBuildPath: "",
|
giteaBuildPath: "",
|
||||||
giteaId: "",
|
giteaId: "",
|
||||||
cleanCache: false,
|
cleanCache: false,
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ export const CreateServer = ({ stepper }: Props) => {
|
|||||||
port: data.port || 22,
|
port: data.port || 22,
|
||||||
username: data.username || "root",
|
username: data.username || "root",
|
||||||
sshKeyId: data.sshKeyId || "",
|
sshKeyId: data.sshKeyId || "",
|
||||||
|
serverType: "deploy",
|
||||||
})
|
})
|
||||||
.then(async (_data) => {
|
.then(async (_data) => {
|
||||||
toast.success("Server Created");
|
toast.success("Server Created");
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export const uploadImageRemoteCommand = (application: ApplicationNested) => {
|
|||||||
getRegistryCommands(buildRegistry, imageName, buildRegistryTag),
|
getRegistryCommands(buildRegistry, imageName, buildRegistryTag),
|
||||||
);
|
);
|
||||||
commands.push(
|
commands.push(
|
||||||
`echo "⚠️ INFO: After the build is finished, you need to wait a few seconds for the server to download the image and run the container."`,
|
`echo "⚠️ INFO: After the build is finished, you need to wait a few seconds for the server to download the image and run the container."`,
|
||||||
);
|
);
|
||||||
commands.push(
|
commands.push(
|
||||||
`echo "📊 Check the Logs tab to see when the container starts running."`,
|
`echo "📊 Check the Logs tab to see when the container starts running."`,
|
||||||
|
|||||||
Reference in New Issue
Block a user