Creating Deployments
This guide walks you through creating and executing deployments in Mantis.
Deployment Sources
Section titled “Deployment Sources”You can deploy from three sources:
| Source | Description | Use Case |
|---|---|---|
| Solution | Complete deployment package | Full application deployment |
| Sequence | Specific workflow | Targeted operation |
| Action | Single operation | Quick fix or test |
Creating a Solution Deployment
Section titled “Creating a Solution Deployment”Step 1: Navigate to Deployments
Section titled “Step 1: Navigate to Deployments”- Open Lens in your browser
- Click Deployments in the sidebar
- Click New Deployment
Step 2: Select Solution
Section titled “Step 2: Select Solution”- Choose Solution as the source type
- Select the solution from the dropdown
- Choose the version to deploy
┌─────────────────────────────────────────────────────────┐│ Create Deployment │├─────────────────────────────────────────────────────────┤│ ││ Source Type: ● Solution ○ Sequence ○ Action ││ ││ Solution: [customer-portal ▼] ││ Version: [1.3.0 ▼] ││ │└─────────────────────────────────────────────────────────┘Step 3: Select Environment
Section titled “Step 3: Select Environment”Choose the target environment:
┌─────────────────────────────────────────────────────────┐│ Select Environment │├─────────────────────────────────────────────────────────┤│ ││ ● Development (2 targets) ││ ○ Staging (4 targets) ││ ○ Production (12 targets) ││ │└─────────────────────────────────────────────────────────┘Step 4: Configure Execution
Section titled “Step 4: Configure Execution”Set execution options:
| Option | Description | Default |
|---|---|---|
| Execution Mode | Parallel, Sequential, or Rolling | Parallel |
| Failure Strategy | Stop, Continue, or Ignore failures | Stop |
| Timeout | Maximum step duration | 300 seconds |
| Priority | Queue priority | 0 (normal) |
Step 5: Review and Deploy
Section titled “Step 5: Review and Deploy”- Review the deployment summary
- Verify targets and versions
- Click Deploy
┌─────────────────────────────────────────────────────────┐│ Review Deployment │├─────────────────────────────────────────────────────────┤│ ││ Solution: customer-portal v1.3.0 ││ Environment: Production ││ Targets: 12 machines ││ ││ Sequences: ││ 1. run-migrations (^1.0.0 → 1.2.0) ││ 2. deploy-backend (^2.0.0 → 2.3.1) ││ 3. deploy-frontend (^1.0.0 → 1.1.0) ││ ││ Execution: Rolling (batch size: 3) ││ Failure: Stop on first failure ││ ││ [Cancel] [Deploy] │└─────────────────────────────────────────────────────────┘Creating a Sequence Deployment
Section titled “Creating a Sequence Deployment”For targeted operations without a full solution:
- Select Sequence as source type
- Choose the sequence and version
- Select targets directly (not via environment)
- Configure and deploy
Creating an Action Deployment
Section titled “Creating an Action Deployment”For quick single operations:
- Select Action as source type
- Choose the action and version
- Provide argument values
- Select target(s)
- Execute
Quick Deploy
Section titled “Quick Deploy”From the solution detail page:
- Navigate to the solution
- Click Deploy next to an environment
- Confirm the deployment
This uses default execution settings.
Variable Override
Section titled “Variable Override”During deployment, you can override variable values:
┌─────────────────────────────────────────────────────────┐│ Variable Overrides │├─────────────────────────────────────────────────────────┤│ ││ Use environment values: ││ database_host: prod-db.company.com ││ log_level: warn ││ ││ Override for this deployment: ││ ┌─────────────────────────┬────────────────────────┐ ││ │ log_level │ [debug ] │ ││ └─────────────────────────┴────────────────────────┘ ││ [+ Add Override] ││ │└─────────────────────────────────────────────────────────┘Overrides apply only to the current deployment.
Scheduled Deployments
Section titled “Scheduled Deployments”Scheduled deployments are managed through the Schedules feature, which is separate from creating an ad-hoc deployment. To deploy at a future time or on a recurring basis, create a schedule rather than a deployment directly.
See Schedules for details on creating and managing scheduled deployments.
Deployment from CLI
Section titled “Deployment from CLI”Using the mantisctl deployment create command (IDs may be UUIDs or SqIds):
# Deploy a solution to an environment (parallel mode by default)mantisctl deployment create \ --solution-id customer-portal \ --source-version 1.3.0 \ --environment-id production
# Deploy a sequence to specific targetsmantisctl deployment create \ --sequence-id deploy-backend \ --source-version 2.0.0 \ --target web-prod-01 \ --target web-prod-02
# Deploy an action with a variablemantisctl deployment create \ --action-id health-check \ --source-version 1.0.0 \ --target web-prod-01 \ --var check_url=http://localhost/healthPre-Deployment Checklist
Section titled “Pre-Deployment Checklist”Before deploying to production:
- Tested in lower environments
- Variable values configured for target environment
- All targets are online
- No deployment freeze is active
- Team is available to monitor
- Rollback plan is ready
Troubleshooting
Section titled “Troubleshooting”Cannot Select Environment
Section titled “Cannot Select Environment”Cause: Environment has no targets assigned
Solution: Assign targets to the environment first
Version Not Available
Section titled “Version Not Available”Cause: Requested version doesn’t exist or is archived
Solution: Check available versions in the solution/sequence
Deployment Blocked by Freeze
Section titled “Deployment Blocked by Freeze”Cause: A deployment freeze is active
Solution: Wait for freeze to end or request override
Next Steps
Section titled “Next Steps”- Target Selection - Choose deployment targets
- Execution Modes - Parallel, sequential, rolling
- Monitoring - Track deployment progress
- Overview - Return to deployments overview
