fix: no tags error
This commit is contained in:
@@ -17,7 +17,7 @@ import { day } from './dayjs';
|
|||||||
import { saveBuildLog } from './buildPacks/common';
|
import { saveBuildLog } from './buildPacks/common';
|
||||||
import { scheduler } from './scheduler';
|
import { scheduler } from './scheduler';
|
||||||
|
|
||||||
export const version = '3.11.5';
|
export const version = '3.11.6';
|
||||||
export const isDev = process.env.NODE_ENV === 'development';
|
export const isDev = process.env.NODE_ENV === 'development';
|
||||||
|
|
||||||
const algorithm = 'aes-256-ctr';
|
const algorithm = 'aes-256-ctr';
|
||||||
|
@@ -22,6 +22,8 @@ const compareSemanticVersions = (a: string, b: string) => {
|
|||||||
return b1.length - a1.length;
|
return b1.length - a1.length;
|
||||||
};
|
};
|
||||||
export async function getTags(type: string) {
|
export async function getTags(type: string) {
|
||||||
|
|
||||||
|
try {
|
||||||
if (type) {
|
if (type) {
|
||||||
const tagsPath = isDev ? './tags.json' : '/app/tags.json';
|
const tagsPath = isDev ? './tags.json' : '/app/tags.json';
|
||||||
const data = await fs.readFile(tagsPath, 'utf8')
|
const data = await fs.readFile(tagsPath, 'utf8')
|
||||||
@@ -32,5 +34,10 @@ export async function getTags(type: string) {
|
|||||||
return tags
|
return tags
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -34,7 +34,8 @@ export async function startService(request: FastifyRequest<ServiceStartStop>, fa
|
|||||||
const { id } = request.params;
|
const { id } = request.params;
|
||||||
const teamId = request.user.teamId;
|
const teamId = request.user.teamId;
|
||||||
const service = await getServiceFromDB({ id, teamId });
|
const service = await getServiceFromDB({ id, teamId });
|
||||||
const arm = isARM(process.arch);
|
console.log({service})
|
||||||
|
const arm = isARM(service.arch);
|
||||||
const { type, destinationDockerId, destinationDocker, persistentStorage, exposePort } =
|
const { type, destinationDockerId, destinationDocker, persistentStorage, exposePort } =
|
||||||
service;
|
service;
|
||||||
|
|
||||||
@@ -128,7 +129,6 @@ export async function startService(request: FastifyRequest<ServiceStartStop>, fa
|
|||||||
labels: makeLabelForServices(type),
|
labels: makeLabelForServices(type),
|
||||||
...defaultComposeConfiguration(network),
|
...defaultComposeConfiguration(network),
|
||||||
}
|
}
|
||||||
console.log(config[s].image)
|
|
||||||
|
|
||||||
// Generate files for builds
|
// Generate files for builds
|
||||||
if (template.services[s]?.files?.length > 0) {
|
if (template.services[s]?.files?.length > 0) {
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if linkToDocs}
|
{#if linkToDocs}
|
||||||
<DocLink url={template[service.id].documentation} text={`Documentation`} isExternal={true} />
|
<DocLink url={template[service.id]?.documentation || 'https://docs.coollabs.io'} text={`Documentation`} isExternal={true} />
|
||||||
{:else}
|
{:else}
|
||||||
<ServiceIcons type={service.type} />
|
<ServiceIcons type={service.type} />
|
||||||
{/if}
|
{/if}
|
||||||
|
@@ -276,6 +276,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2 items-center">
|
<div class="grid grid-cols-2 items-center">
|
||||||
<label for="version">Version / Tag</label>
|
<label for="version">Version / Tag</label>
|
||||||
|
{#if tags.tags?.length > 0}
|
||||||
<div class="custom-select-wrapper w-full">
|
<div class="custom-select-wrapper w-full">
|
||||||
<Select
|
<Select
|
||||||
form="saveForm"
|
form="saveForm"
|
||||||
@@ -289,7 +290,11 @@
|
|||||||
isClearable={false}
|
isClearable={false}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
{:else}
|
||||||
|
<input class="w-full border-red-500" disabled placeholder="Error getting tags...">
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid grid-cols-2 items-center">
|
<div class="grid grid-cols-2 items-center">
|
||||||
<label for="destination">{$t('application.destination')}</label>
|
<label for="destination">{$t('application.destination')}</label>
|
||||||
<div>
|
<div>
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "coolify",
|
"name": "coolify",
|
||||||
"description": "An open-source & self-hostable Heroku / Netlify alternative.",
|
"description": "An open-source & self-hostable Heroku / Netlify alternative.",
|
||||||
"version": "3.11.5",
|
"version": "3.11.6",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"repository": "github:coollabsio/coolify",
|
"repository": "github:coollabsio/coolify",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Reference in New Issue
Block a user