feat(Deployment): Integrate Ansible deployment via PHP deployment pipeline

- Create AnsibleDeployStage using framework's Process module for secure command execution
- Integrate AnsibleDeployStage into DeploymentPipelineCommands for production deployments
- Add force_deploy flag support in Ansible playbook to override stale locks
- Use PHP deployment module as orchestrator (php console.php deploy:production)
- Fix ErrorAggregationInitializer to use Environment class instead of $_ENV superglobal

Architecture:
- BuildStage → AnsibleDeployStage → HealthCheckStage for production
- Process module provides timeout, error handling, and output capture
- Ansible playbook supports rollback via rollback-git-based.yml
- Zero-downtime deployments with health checks
This commit is contained in:
2025-10-26 14:08:07 +01:00
parent a90263d3be
commit 3b623e7afb
170 changed files with 19888 additions and 575 deletions

View File

@@ -9,7 +9,7 @@ use App\Framework\Notification\ValueObjects\NotificationChannel;
use App\Framework\Notification\ValueObjects\NotificationId;
use App\Framework\Notification\ValueObjects\NotificationPriority;
use App\Framework\Notification\ValueObjects\NotificationStatus;
use App\Framework\Notification\ValueObjects\NotificationType;
use App\Framework\Notification\ValueObjects\NotificationTypeInterface;
/**
* Core notification entity
@@ -21,7 +21,7 @@ final readonly class Notification
/**
* @param NotificationId $id Unique notification identifier
* @param string $recipientId User/Entity receiving the notification
* @param NotificationType $type Notification category
* @param NotificationTypeInterface $type Notification category
* @param string $title Notification title
* @param string $body Notification message body
* @param Timestamp $createdAt Creation timestamp
@@ -37,7 +37,7 @@ final readonly class Notification
public function __construct(
public NotificationId $id,
public string $recipientId,
public NotificationType $type,
public NotificationTypeInterface $type,
public string $title,
public string $body,
public Timestamp $createdAt,
@@ -69,7 +69,7 @@ final readonly class Notification
public static function create(
string $recipientId,
NotificationType $type,
NotificationTypeInterface $type,
string $title,
string $body,
NotificationChannel ...$channels