Two Deploys at Once
Two merges to main a minute apart start two production deploys that run at the same time and interfere. Deploys must never overlap, and a running deploy must never be cancelled halfway. What do you add?
main
Choose one answer
needs: deploy on the deploy job, so it waits for its own previous run
needs: deploy
concurrency: { group: deploy-prod, cancel-in-progress: false }
strategy: { max-parallel: 1 } on the deploy job
strategy: { max-parallel: 1 }
concurrency: { group: deploy-prod, cancel-in-progress: true }