Skip to content

Commit 3f34df2

Browse files
authored
Merge pull request coollabsio#3310 from coollabsio/next
v4.0.0-beta.329
2 parents b2944f1 + bfeaae9 commit 3f34df2

File tree

9 files changed

+26
-13
lines changed

9 files changed

+26
-13
lines changed

app/Livewire/Project/New/PublicGitRepository.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ public function updatedBaseDirectory()
9999
}
100100
}
101101

102+
public function updatedDockerComposeLocation()
103+
{
104+
if ($this->docker_compose_location) {
105+
$this->docker_compose_location = rtrim($this->docker_compose_location, '/');
106+
if (! str($this->docker_compose_location)->startsWith('/')) {
107+
$this->docker_compose_location = '/'.$this->docker_compose_location;
108+
}
109+
}
110+
}
111+
102112
public function updatedBuildPack()
103113
{
104114
if ($this->build_pack === 'nixpacks') {

app/Livewire/Project/Service/EditCompose.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function saveEditedCompose()
4343
{
4444
$this->dispatch('info', 'Saving new docker compose...');
4545
$this->dispatch('saveCompose', $this->service->docker_compose_raw);
46+
$this->dispatch('refreshStorages');
4647
}
4748

4849
public function instantSave()

app/Livewire/Project/Shared/EnvironmentVariable/All.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class All extends Component
2424

2525
protected $listeners = [
2626
'saveKey' => 'submit',
27+
'refreshEnvs',
2728
'environmentVariableDeleted' => 'refreshEnvs',
2829
];
2930

@@ -61,7 +62,7 @@ public function sortEnvironmentVariables()
6162
$sortBy = data_get($this->resource, 'settings.is_env_sorting_enabled') ? 'key' : 'order';
6263

6364
$sortFunction = function ($variables) use ($sortBy) {
64-
if (!$variables) {
65+
if (! $variables) {
6566
return $variables;
6667
}
6768
if ($sortBy === 'key') {

app/Livewire/Project/Shared/EnvironmentVariable/Show.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,4 @@ public function delete()
136136
return handleError($e);
137137
}
138138
}
139-
}
139+
}

bootstrap/helpers/shared.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3092,10 +3092,9 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
30923092
$topLevel->get('volumes')->put($name, [
30933093
'name' => $name,
30943094
]);
3095-
30963095
LocalPersistentVolume::updateOrCreate(
30973096
[
3098-
'mount_path' => $target,
3097+
'name' => $name,
30993098
'resource_id' => $originalResource->id,
31003099
'resource_type' => get_class($originalResource),
31013100
],
@@ -3206,7 +3205,6 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
32063205
}
32073206
}
32083207
// convert environment variables to one format
3209-
ray($environment);
32103208
$environment = convertComposeEnvironmentToArray($environment);
32113209

32123210
// Add Coolify defined environments
@@ -3333,7 +3331,10 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
33333331
foreach ($normalEnvironments as $key => $value) {
33343332
$key = str($key);
33353333
$value = str($value);
3336-
if ($value->startsWith('$')) {
3334+
if ($value->startsWith('$') || $value->contains('${')) {
3335+
if ($value->contains('${')) {
3336+
$value = $value->after('${')->before('}');
3337+
}
33373338
$value = str(replaceVariables(str($value)));
33383339
if ($value->contains(':-')) {
33393340
$key = $value->before(':');

config/sentry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// The release version of your application
99
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
10-
'release' => '4.0.0-beta.328',
10+
'release' => '4.0.0-beta.329',
1111
// When left empty or `null` the Laravel environment will be used
1212
'environment' => config('app.env'),
1313

config/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
return '4.0.0-beta.328';
3+
return '4.0.0-beta.329';

resources/views/livewire/project/new/public-git-repository.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<form class="flex flex-col gap-2" wire:submit='loadBranch'>
55
<div class="flex flex-col gap-2">
66
<div class="flex flex-col gap-2">
7-
<div class="flex items-end gap-2">
7+
<div class="flex gap-2 items-end">
88
<x-forms.input required id="repository_url" label="Repository URL (https://)"
99
helper="{!! __('repository.url') !!}" />
1010
<x-forms.button type="submit">
@@ -47,7 +47,7 @@
4747
@if ($build_pack === 'dockercompose')
4848
<x-forms.input placeholder="/" wire:model.blur="base_directory" label="Base Directory"
4949
helper="Directory to use as root. Useful for monorepos." />
50-
<x-forms.input placeholder="/docker-compose.yaml" id="docker_compose_location"
50+
<x-forms.input placeholder="/docker-compose.yaml" wire:model.blur="docker_compose_location"
5151
label="Docker Compose Location"
5252
helper="It is calculated together with the Base Directory:<br><span class='dark:text-warning'>{{ Str::start($base_directory . $docker_compose_location, '/') }}</span>" />
5353
Compose file location in your repository:<span

versions.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"coolify": {
33
"v4": {
4-
"version": "4.0.0-beta.328"
4+
"version": "4.0.0-beta.329"
55
},
66
"nightly": {
7-
"version": "4.0.0-beta.329"
7+
"version": "4.0.0-beta.330"
88
}
99
}
10-
}
10+
}

0 commit comments

Comments
 (0)