fix: PR deployments use the first fqdn as base

This commit is contained in:
Andras Bacsai
2023-10-05 13:35:16 +02:00
parent 0e583334e7
commit 76b8d048d4
2 changed files with 3 additions and 1 deletions

View File

@@ -92,6 +92,7 @@ class ProjectController extends Controller
$generatedValue = $value;
if ($value->contains('SERVICE_')) {
$command = $value->after('SERVICE_')->beforeLast('_');
// TODO: make it shared with Service.php
switch ($command->value()) {
case 'PASSWORD':
$generatedValue = Str::password(symbols: false);