How govuk-pay/pay-ci works
pay-ci is a Concourse-based CI and operational-automation repository. Its broad workflow is pipeline orchestration over reusable tasks that build, test, deploy, and maintain GOV.UK Pay services. Sampled code also shows a CodeBuild runner that starts builds and streams logs, a support-rota tool that resolves on-call contacts and updates Slack, and a semantic-version action. Most pipeline/task internals are unsampled, so those subsystem links are shown as unverified rather than asserted as source-proven calls.
Main entry points: index.js Support rota command · codebuild-runner.js Build and log runner · pipelines Pipelines · executor.js Build executor
Components 18
CI orchestration
- Pipelines
ci/pipelines - Pkl pipelines
ci/pkl-pipelines - Reusable tasks
ci/tasks
Delivery and testing
- CodeBuild command
ci/scripts/run-codebuild/run-codebuild.js - Build executor
ci/scripts/run-codebuild/libs/executor.js - Build and log runner
ci/scripts/run-codebuild/libs/codebuild-runner.js
Operations automation
- Support rota command
ci/scripts/support-rota-notification/index.js - User mapping
ci/scripts/support-rota-notification/access-control-util.js - Slack updates
ci/scripts/support-rota-notification/slack-client.js - Pass secrets
Reusable tools
- Semver action entry
actions/next-semver/src/index.ts - Version calculation
actions/next-semver/src/nextSemver.ts
Other components
- Concourse
- GitHub Actions
- AWS CodeBuild
- CloudWatch Logs
- PagerDuty schedules
- Slack
Connections 14
- Concourse → Pipelines: runs
- Pipelines → Reusable tasks: dispatches
- Pkl pipelines → Pipelines: defines
- GitHub Actions → Semver action entry: invokes
- Semver action entry → Version calculation: calls
actions/next-semver/src/index.ts - CodeBuild command → Build executor: calls
ci/scripts/run-codebuild/run-codebuild.js - Build executor → Build and log runner: creates and runs
ci/scripts/run-codebuild/libs/executor.js - Build and log runner → AWS CodeBuild: starts and polls
ci/scripts/run-codebuild/libs/codebuild-runner.js - Build and log runner → CloudWatch Logs: reads logs
ci/scripts/run-codebuild/libs/codebuild-runner.js - Support rota command → PagerDuty schedules: queries schedules
ci/scripts/support-rota-notification/index.js - Support rota command → User mapping: resolves handles
ci/scripts/support-rota-notification/index.js - Support rota command → Slack updates: updates and notifies
ci/scripts/support-rota-notification/index.js - Slack updates → Slack: posts updates
ci/scripts/support-rota-notification/slack-client.js - Pass secrets → Support rota command: provides credentials