Back to sessions

Deploy staging environment for feature/payments

sess-002

Failed
deploy-agent-v2
2m 3s
2 tools

Docker build failed — missing env variable STRIPE_KEY

Event Timeline

Deployment triggered via CI pipeline

start

Building Docker image from Dockerfile.staging

tool call

Build failed: STRIPE_KEY not found in env

error

Attempted fallback with .env.example — still missing

retry

Deployment aborted after 2 retries

complete

Tools Used

docker-deploykubectl
Build log/logs/deploy-staging-002.log

Reflection

85%

Went Well

  • Error message was clear and actionable

Went Wrong

  • Did not pre-validate environment variables
  • Retry logic attempted same invalid state

Key Learnings

Always validate env vars before Docker builds
95%

Reusable Tactics

Add pre-flight env check before Docker buildClassify errors as retryable vs permanent