DevOps Infrastructure
Exclusive to: devops-engineer agent
Instructions
- Review existing infrastructure files (Dockerfile, docker-compose, .github/workflows)
- Understand deployment requirements
- Propose configuration with rollback plan
- Implement with safety checks
- Verify deployment succeeds
Docker Patterns
Multi-stage Build
FROM composer:2 AS vendor
# Install dependencies
FROM node:20-alpine AS assets
# Build frontend
FROM php:8.3-fpm-alpine
# Final production image
Docker Compose
services:
app:
build: .
db:
image: mysql:8.0
redis:
image: redis:alpine
CI/CD Workflow
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: composer test
Deployment Checklist
Examples
- "Create Dockerfile for Laravel"
- "Set up GitHub Actions pipeline"
- "Configure production environment"