Merge branch 'next' into some-tweaks

This commit is contained in:
Kaname 2022-09-10 17:14:44 +00:00
commit b1bb508554
10 changed files with 9 additions and 12 deletions

View File

@ -556,7 +556,6 @@ export function checkPnpm(installCommand = null, buildCommand = null, startComma
); );
} }
export async function buildImage({ export async function buildImage({
applicationId, applicationId,
tag, tag,
@ -677,8 +676,6 @@ export async function buildCacheImageWithNode(data, imageForBuild) {
secrets, secrets,
pullmergeRequestId pullmergeRequestId
} = data; } = data;
const isPnpm = checkPnpm(installCommand, buildCommand); const isPnpm = checkPnpm(installCommand, buildCommand);
const Dockerfile: Array<string> = []; const Dockerfile: Array<string> = [];
Dockerfile.push(`FROM ${imageForBuild}`); Dockerfile.push(`FROM ${imageForBuild}`);

View File

@ -28,6 +28,7 @@ export default async function (data) {
if (secrets.length > 0) { if (secrets.length > 0) {
secrets.forEach((secret) => { secrets.forEach((secret) => {
if (secret.isBuildSecret) { if (secret.isBuildSecret) {
// TODO: fix secrets
if ( if (
(pullmergeRequestId && secret.isPRMRSecret) || (pullmergeRequestId && secret.isPRMRSecret) ||
(!pullmergeRequestId && !secret.isPRMRSecret) (!pullmergeRequestId && !secret.isPRMRSecret)

View File

@ -655,7 +655,7 @@ async function startLanguageToolService(request: FastifyRequest<ServiceStartStop
image: config.languagetool.image, image: config.languagetool.image,
environment: config.languagetool.environmentVariables, environment: config.languagetool.environmentVariables,
...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}), ...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}),
volumes: config.languagetool, volumes: config.languagetool.volumes,
labels: makeLabelForServices('languagetool'), labels: makeLabelForServices('languagetool'),
...defaultComposeConfiguration(network), ...defaultComposeConfiguration(network),
} }
@ -710,7 +710,7 @@ async function startN8nService(request: FastifyRequest<ServiceStartStop>) {
[id]: { [id]: {
container_name: id, container_name: id,
image: config.n8n.image, image: config.n8n.image,
volumes: config.n8n, volumes: config.n8n.volumes,
environment: config.n8n.environmentVariables, environment: config.n8n.environmentVariables,
labels: makeLabelForServices('n8n'), labels: makeLabelForServices('n8n'),
...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}), ...(exposePort ? { ports: [`${exposePort}:${port}`] } : {}),

View File

@ -26,7 +26,7 @@ export async function cleanupManually(request: FastifyRequest) {
} }
export async function checkUpdate(request: FastifyRequest) { export async function checkUpdate(request: FastifyRequest) {
try { try {
const isStaging = request.hostname === 'staging.coolify.io' const isStaging = request.hostname === 'staging.coolify.io' || request.hostname === 'arm.coolify.io'
const currentVersion = version; const currentVersion = version;
const { data: versions } = await axios.get( const { data: versions } = await axios.get(
`https://get.coollabs.io/versions.json?appId=${process.env['COOLIFY_APP_ID']}&version=${currentVersion}` `https://get.coollabs.io/versions.json?appId=${process.env['COOLIFY_APP_ID']}&version=${currentVersion}`

View File

@ -107,7 +107,7 @@
$status.application.initialLoading = true; $status.application.initialLoading = true;
try { try {
await del(`/applications/${id}`, { id, force }); await del(`/applications/${id}`, { id, force });
return await goto(`/`, { replaceState: true }); return await window.location.assign(`/`);
} catch (error) { } catch (error) {
if (error.message.startsWith(`Command failed: SSH_AUTH_SOCK=/tmp/coolify-ssh-agent.pid`)) { if (error.message.startsWith(`Command failed: SSH_AUTH_SOCK=/tmp/coolify-ssh-agent.pid`)) {
forceDelete = true; forceDelete = true;

View File

@ -220,7 +220,6 @@
loading = true; loading = true;
try { try {
nonWWWDomain = application.fqdn && getDomain(application.fqdn).replace(/^www\./, ''); nonWWWDomain = application.fqdn && getDomain(application.fqdn).replace(/^www\./, '');
console.log({debug: nonWWWDomain})
if (application.deploymentType) if (application.deploymentType)
application.deploymentType = application.deploymentType.toLowerCase(); application.deploymentType = application.deploymentType.toLowerCase();
!isBot && !isBot &&

View File

@ -77,7 +77,7 @@
$status.database.initialLoading = true; $status.database.initialLoading = true;
try { try {
await del(`/databases/${database.id}`, { id: database.id, force }); await del(`/databases/${database.id}`, { id: database.id, force });
return await goto('/', { replaceState: true }); return await window.location.assign('/');
} catch (error) { } catch (error) {
return errorNotification(error); return errorNotification(error);
} finally { } finally {

View File

@ -112,7 +112,7 @@
<button <button
id="follow" id="follow"
on:click={followBuild} on:click={followBuild}
class="bg-transparent btn btn-sm" class="bg-transparent btn btn-sm btn-link"
class:text-green-500={followingLogs} class:text-green-500={followingLogs}
> >
<svg <svg

View File

@ -86,7 +86,7 @@
if (service.type && $status.service.isRunning) if (service.type && $status.service.isRunning)
await post(`/services/${service.id}/${service.type}/stop`, {}); await post(`/services/${service.id}/${service.type}/stop`, {});
await del(`/services/${service.id}`, { id: service.id }); await del(`/services/${service.id}`, { id: service.id });
return await goto(`/`, { replaceState: true }); return await window.location.assign(`/`);
} catch (error) { } catch (error) {
return errorNotification(error); return errorNotification(error);
} finally { } finally {

View File

@ -128,7 +128,7 @@
<button <button
id="follow" id="follow"
on:click={followBuild} on:click={followBuild}
class="bg-transparent btn btn-sm" class="bg-transparent btn btn-sm btn-link"
class:text-green-500={followingLogs} class:text-green-500={followingLogs}
> >
<svg <svg