@webhikers/cli 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/config.js +8 -0
- package/src/commands/create.js +3 -2
package/package.json
CHANGED
package/src/commands/config.js
CHANGED
|
@@ -20,6 +20,7 @@ export async function configCommand() {
|
|
|
20
20
|
console.log(` Server UUID: ${maskValue(existing.serverUuid)}`);
|
|
21
21
|
console.log(` SSH User: ${existing.sshUser || "—"}`);
|
|
22
22
|
console.log(` SSH Key: ${existing.sshKeyPath || "—"}`);
|
|
23
|
+
console.log(` GitHub App: ${maskValue(existing.githubAppUuid)}`);
|
|
23
24
|
console.log("");
|
|
24
25
|
|
|
25
26
|
const { overwrite } = await inquirer.prompt([
|
|
@@ -110,6 +111,12 @@ export async function configCommand() {
|
|
|
110
111
|
message: "SSH User:\n (Standard ist root, Enter drücken wenn korrekt)\n ",
|
|
111
112
|
default: "root",
|
|
112
113
|
},
|
|
114
|
+
{
|
|
115
|
+
type: "input",
|
|
116
|
+
name: "githubAppUuid",
|
|
117
|
+
message: "GitHub App UUID:\n (Coolify UI → Sources → GitHub App klicken → UUID steht in der URL)\n ",
|
|
118
|
+
validate: (v) => (v.length > 0 ? true : "UUID ist erforderlich"),
|
|
119
|
+
},
|
|
113
120
|
]);
|
|
114
121
|
|
|
115
122
|
const coolifyUrl = `http://${answers.serverIp}:${answers.coolifyPort}`;
|
|
@@ -122,6 +129,7 @@ export async function configCommand() {
|
|
|
122
129
|
serverUuid: answers.serverUuid,
|
|
123
130
|
sshUser: answers.sshUser,
|
|
124
131
|
sshKeyPath,
|
|
132
|
+
githubAppUuid: answers.githubAppUuid,
|
|
125
133
|
};
|
|
126
134
|
|
|
127
135
|
saveConfig(config);
|
package/src/commands/create.js
CHANGED
|
@@ -149,11 +149,12 @@ export async function createCommand(name) {
|
|
|
149
149
|
const projectUuid = project.uuid;
|
|
150
150
|
|
|
151
151
|
console.log(c.dim(" Creating application..."));
|
|
152
|
-
const app = await coolifyApi(config, "POST", "/applications/
|
|
152
|
+
const app = await coolifyApi(config, "POST", "/applications/private-github-app", {
|
|
153
153
|
project_uuid: projectUuid,
|
|
154
154
|
server_uuid: config.serverUuid,
|
|
155
155
|
environment_name: "production",
|
|
156
|
-
|
|
156
|
+
github_app_uuid: config.githubAppUuid,
|
|
157
|
+
git_repository: `Webhikers/${name}`,
|
|
157
158
|
git_branch: "master",
|
|
158
159
|
build_pack: "dockerfile",
|
|
159
160
|
ports_exposes: "3000",
|