fix: service generate includes yml files as well (haha)

This commit is contained in:
Andras Bacsai
2024-11-25 14:34:18 +01:00
parent e6ea4a0199
commit 11fb5a9e32
2 changed files with 19 additions and 1 deletions

View File

@@ -20,7 +20,10 @@ class ServicesGenerate extends Command
public function handle(): int public function handle(): int
{ {
$serviceTemplatesJson = collect(glob(base_path('templates/compose/*.yaml'))) $serviceTemplatesJson = collect(array_merge(
glob(base_path('templates/compose/*.yaml')),
glob(base_path('templates/compose/*.yml'))
))
->mapWithKeys(function ($file): array { ->mapWithKeys(function ($file): array {
$file = basename($file); $file = basename($file);
$parsed = $this->processFile($file); $parsed = $this->processFile($file);

View File

@@ -3040,5 +3040,20 @@
"logo": "svgs/zipline.png", "logo": "svgs/zipline.png",
"minversion": "0.0.0", "minversion": "0.0.0",
"port": "3000" "port": "3000"
},
"convertx": {
"documentation": "https://github.com/C4illin/ConvertX?utm_source=coolify.io",
"slogan": "A self-hosted online file converter. Supports over a thousand different formats.",
"compose": "c2VydmljZXM6CiAgY29udmVydHg6CiAgICBpbWFnZTogJ2doY3IuaW8vYzRpbGxpbi9jb252ZXJ0eDpsYXRlc3QnCiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBTRVJWSUNFX0ZRRE5fQ09OVkVSVFgKICAgICAgLSAnQUNDT1VOVF9SRUdJU1RSQVRJT049JHtBQ0NPVU5UX1JFR0lTVFJBVElPTjotZmFsc2V9JwogICAgICAtICdIVFRQX0FMTE9XRUQ9JHtIVFRQX0FMTE9XRUQ6LXRydWV9JwogICAgICAtICdBTExPV19VTkFVVEhFTlRJQ0FURUQ9JHtBTExPV19VTkFVVEhFTlRJQ0FURUQ6LWZhbHNlfScKICAgICAgLSAnQVVUT19ERUxFVEVfRVZFUllfTl9IT1VSUz0ke0FVVE9fREVMRVRFX0VWRVJZX05fSE9VUlM6LTI0fScKICAgICAgLSAnSldUX1NFQ1JFVD0ke1NFUlZJQ0VfUEFTU1dPUkRfQ09OVkVSVFhKV1RTRUNSRVR9JwogICAgdm9sdW1lczoKICAgICAgLSAnY29udmVydHhfZGF0YTovYXBwL2RhdGEnCg==",
"tags": [
"converter",
"file",
"documents",
"files",
"directories"
],
"logo": "svgs/convertx.png",
"minversion": "0.0.0",
"port": "3000"
} }
} }