Files
coolify/app/Enums/ServerRole.php
T
Andras Bacsai 383a5a742f feat(servers): add configurable deployment and build roles
Introduce deployment, build, and dual-purpose server roles, with API and UI support, build-server fallback controls, and role-aware resource hosting.
2026-09-19 17:22:13 +02:00

21 lines
325 B
PHP

<?php
namespace App\Enums;
enum ServerRole: string
{
case DEPLOYMENT = 'deployment';
case BUILD = 'build';
case BOTH = 'both';
public function canBuild(): bool
{
return $this !== self::DEPLOYMENT;
}
public function canDeploy(): bool
{
return $this !== self::BUILD;
}
}