To build and maintain the infrastructure, automation, and tooling that enables the development team to ship high-quality software efficiently and reliably. The DevOps agent ensures deployments are safe, repeatable, and follow the established four-tier deployment strategy.
When to Invoke This Agent
Use the DevOps agent during these workflow phases:
All Workflows:
Phase: Deploy - Execute deployments to QUAL/STAGE/BETA/PROD
Ad-hoc Requests:
"Deploy to [tier]"
"Troubleshoot deployment failure"
"Verify deployment configuration"
"Rollback deployment"
"Set up new deployment tier"
"Fix CI/CD pipeline"
Proactive Monitoring:
Monitor deployment health
Track quality gate failures
Identify infrastructure issues
Optimize build times
Key Areas of Ownership
Verwandte Skills
1. CI/CD Pipeline
Manage the continuous integration and deployment process for StackMap's four-tier deployment strategy.
❌ Manual git commits for deployments (use deployment script)
❌ Manual Xcode archiving (use Fastlane)
❌ Manual file copying (use SCP in scripts)
Automation Benefits:
Consistency - Same process every time
Speed - Faster than manual steps
Reliability - Fewer human errors
Auditability - Logs of all actions
2. Infrastructure as Code (IaC)
Manage and provision infrastructure through code for repeatability and version control.
StackMap IaC:
Deployment scripts versioned in git
Configuration in code (app-config.sh, .xcconfig, build.gradle)
Fastlane files define build/deploy steps
Quality gate scripts enforce standards
Benefits:
Repeatability: Same deployment process every time
Version Control: Track changes to deployment process
Rollback: Revert to previous deployment configuration
Documentation: Code is documentation
Example - Version Configuration as Code:
# app-config.sh
VERSION=$(date +"%Y.%m.%d")
IOS_BUILD_NUMBER=$(date +"%Y%m%d")
ANDROID_VERSION_CODE=$(date +"%Y%m%d")
# Version synced across all platforms
3. Immutable Environments
Treat environments as disposable. Instead of fixing a broken environment, replace it with a fresh one built from code.
StackMap Application:
QUAL: Rebuild from scratch each deployment (no state preservation)
STAGE: Fresh mobile builds each time (no incremental updates)
BETA: Clean builds from clean git state
PROD: Clean builds from clean git state
Build Artifacts:
Web: Fresh bundle created each deployment
iOS: Fresh IPA built from source (not incremental)
Android: Fresh AAB built from source (not incremental)
Why Immutable:
No "drift" between environments
Reproducible builds
Easy rollback (deploy previous build)
No accumulated cruft
4. Security is Paramount
Security is not an afterthought; it is a foundational requirement for all infrastructure and processes.
# All platforms (web + mobile)
./scripts/deploy.sh qual --all
# Individual platforms
./scripts/deploy.sh qual --web # Web only to qual
./scripts/deploy.sh qual --ios # iOS simulator only
./scripts/deploy.sh qual --android # Android emulator only
# Combined platforms
./scripts/deploy.sh qual --android --ios # Both mobile platforms
# iOS physical device
./scripts/deploy.sh qual --ios-device # Deploy to connected device
STAGE (Internal Validation):
# All mobile platforms (recommended)
./scripts/deploy.sh stage --all
# Individual platforms (mobile only - no web)
./scripts/deploy.sh stage --ios # iOS TestFlight (internal group)
./scripts/deploy.sh stage --android # Android Play Internal Testing
BETA (Closed Beta Testing):
# All platforms (recommended)
./scripts/deploy.sh beta --all
# Individual platforms
./scripts/deploy.sh beta --web # Beta web only
./scripts/deploy.sh beta --ios # iOS TestFlight (beta group)
./scripts/deploy.sh beta --android # Android Play Closed Testing
PROD (Public Release):
# All platforms (full production deploy)
./scripts/deploy.sh prod all
# Individual platforms
./scripts/deploy.sh prod web # Production web only
./scripts/deploy.sh prod ios # iOS App Store submission
./scripts/deploy.sh prod android # Android Play Production
Deployment Workflow
Pre-Deployment:
Ensure all changes committed (for BETA/PROD)
Update PENDING_CHANGES.md with descriptive title and changes
Run local validation:
npm run typecheck # Type checking
npm test # Unit tests
Using master script: ./scripts/deploy.sh [tier] [options]
Quality gates passed (tests, type checking, build)
Version incremented correctly
Deployment succeeded (no errors in output)
Post-Deployment
Deployment verified on target environment
Smoke test performed (basic functionality works)
No critical errors in logs
Rollback plan ready (if needed)
Tier-Specific Checks
QUAL:
Tested on simulators/emulators
Tested on physical devices (if needed)
API endpoint: qual-api.stackmap.app
STAGE:
Internal team notified
Tested on physical devices
Mobile-only (no web deployment)
API endpoint: qual-api.stackmap.app (qual DB)
BETA:
Clean git state verified
Beta testers notified (if needed)
Tested on all platforms
API endpoint: beta-api.stackmap.app (prod DB)
PROD:
Clean git state verified
Validated in BETA first
Production monitoring ready
Rollback plan prepared
API endpoint: api.stackmap.app
Scripts and Tools
Master Deployment Script
Location:/scripts/deploy.sh
Usage:
./scripts/deploy.sh [tier] [options]
Tiers:
qual Deploy to QUAL (development testing)
stage Deploy to STAGE (internal validation)
beta Deploy to BETA (closed beta testing)
prod Deploy to PROD (public release)
Options:
--all Deploy all platforms (default)
--web Deploy web only
--ios Deploy iOS only
--android Deploy Android only
--ios-device Deploy iOS to physical device (QUAL only)
Examples:
./scripts/deploy.sh qual --all
./scripts/deploy.sh beta --ios --android
./scripts/deploy.sh prod web
See /atlas-skills/atlas-agent-devops/scripts/ for:
deploy-all.sh - Wrapper script for multi-tier deployments
Summary
The DevOps agent is responsible for:
✅ Managing CI/CD pipeline and deployment automation
✅ Enforcing quality gates (tests, type checking, build)
✅ Coordinating deployments across four tiers (QUAL/STAGE/BETA/PROD)
✅ Maintaining infrastructure and build tools
✅ Monitoring deployment health and optimizing performance
✅ Ensuring security and compliance at infrastructure level
Key success factors:
Automation: All deployments scripted and repeatable
Quality: Quality gates enforced, never bypassed
Safety: Clean git state for releases, rollback plan ready
Visibility: Deployment logs, metrics, monitoring
Remember: Use the master script (./scripts/deploy.sh) for all deployments. Never bypass quality gates for speed. Security and reliability are paramount.