Deploy applications
Deploying 9 systems out at the same time can be a non-trivial task. This should help explain how we do it.
AWS Codepipeline
Deploying GovWifi is achieved via AWS Codepipeline and Codebuild. The code for this is found in the govwifi-deploy module of the govwifi-terraform repo.
Core services
Instructions for deploying the core services can be found here. You will need to be a member of the GovWifi team to access these instructions.
This covers the:
- Admin site
- Authentication API
- Logging API
When the deployment is complete the ECS service will automatically be restarted.
Instructions for deploying the Frontend RADIUS service can be found here. You will need to be a member of the GovWifi team to access these instructions.
Docs and the product page
The Dev Docs, Tech Docs, and Product Page use a static site generator called Middleman.
Pull Request Previews
Automatic branch previews are deployed to Heroku.
When a PR is raised, a deploy is triggered automatically and the link appears inline on the PR.
Production
Each repo has it’s own pipeline which deploys out to GovPaaS whenever a change is made to the master
branch.
Trigger a deployment
- Merge your development branch to
master
. - Github Actions will build + deploy to GovPaaS.
- Verify contents is deployed (you may need to add a
GET
parameter to bust the cache).