This commit is contained in:
Andras Bacsai 2022-07-25 11:08:09 +00:00
parent dd2a876a67
commit e47395bab7
4 changed files with 6 additions and 3 deletions

View File

@ -1 +1,2 @@
- RDE Application DNS check not working - RDE Application DNS check not working
- Check DNS configurations for app/service/coolify with RDE and local engines

View File

@ -512,7 +512,7 @@ export async function executeDockerCmd({ dockerId, command }: { dockerId: string
await createRemoteEngineConfiguration(dockerId) await createRemoteEngineConfiguration(dockerId)
} }
return await asyncExecShell( return await asyncExecShell(
`DOCKER_HOST="${host}" ${command}` `DOCKER_BUILDKIT=1 DOCKER_HOST="${host}" ${command}`
); );
} }
export async function startTraefikProxy(id: string): Promise<void> { export async function startTraefikProxy(id: string): Promise<void> {

View File

@ -177,6 +177,7 @@ export async function getApplicationFromDB(id: string, teamId: string) {
} }
export async function getApplicationFromDBWebhook(projectId: number, branch: string) { export async function getApplicationFromDBWebhook(projectId: number, branch: string) {
try { try {
console.log({ projectId, branch })
let application = await prisma.application.findFirst({ let application = await prisma.application.findFirst({
where: { projectId, branch, settings: { autodeploy: true } }, where: { projectId, branch, settings: { autodeploy: true } },
include: { include: {
@ -187,6 +188,7 @@ export async function getApplicationFromDBWebhook(projectId: number, branch: str
persistentStorage: true persistentStorage: true
} }
}); });
console.log({ application })
if (!application) { if (!application) {
throw { status: 500, message: 'Application not configured.' } throw { status: 500, message: 'Application not configured.' }
} }

View File

@ -86,7 +86,7 @@ export async function gitHubEvents(request: FastifyRequest<GitHubEvents>): Promi
projectId = repository.id; projectId = repository.id;
branch = body.pull_request.head.ref.split('/')[2]; branch = body.pull_request.head.ref.split('/')[2];
} }
console.log({repository, projectId, branch})
const applicationFound = await getApplicationFromDBWebhook(projectId, branch); const applicationFound = await getApplicationFromDBWebhook(projectId, branch);
if (applicationFound) { if (applicationFound) {
const webhookSecret = applicationFound.gitSource.githubApp.webhookSecret || null; const webhookSecret = applicationFound.gitSource.githubApp.webhookSecret || null;