mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-04 10:42:23 +00:00
feat(env): support variable flag directives in developer view (#12349)
This commit is contained in:
1 parent
1039368491
commit
fcdcd80eeb
12 files changed
+441
-109
No files matched your search
@@ -42,6 +42,13 @@ class EnvironmentVariable extends BaseModel
|
||||
{
|
||||
use Auditable;
|
||||
|
||||
/**
|
||||
* Flags that a "# coolify:" line of the developer view can set, with their defaults.
|
||||
*
|
||||
* @var array<string, bool>
|
||||
*/
|
||||
public const DEV_VIEW_FLAG_DEFAULTS = ['literal' => false, 'buildtime' => true, 'runtime' => true];
|
||||
|
||||
public const BUILDPACK_CONTROL_VARIABLE_PREFIXES = ['NIXPACKS_', 'RAILPACK_'];
|
||||
|
||||
/**
|
||||
@@ -101,6 +108,7 @@ class EnvironmentVariable extends BaseModel
|
||||
'value' => 'encrypted',
|
||||
'preserve_compose_null' => 'boolean',
|
||||
'is_multiline' => 'boolean',
|
||||
'is_literal' => 'boolean',
|
||||
'is_preview' => 'boolean',
|
||||
'is_runtime' => 'boolean',
|
||||
'is_buildtime' => 'boolean',
|
||||
|
||||
Reference in new issue
Block a user