Skip to content

Deployment

Thomas Leese edited this page May 16, 2022 · 2 revisions

The API is currently deployed to the Ministry of Justice's Cloud Platform.

The instructions on how to perform a deployment are:

git checkout main
git pull

# Get the latest tag, so we know what the next one will be
git describe --abbrev=0
DATE=$(date "+%Y-%m-%d")
NEXT_VERSION="vx.x.x"

git tag -a $NEXT_VERSION -m "Deploying on $DATE"
git push origin $NEXT_VERSION

git checkout -b changelog-$NEXT_VERSION
bundle
rake changelog
git add CHANGELOG.md
git commit -m "Generated changelog for $NEXT_VERSION"
git push --set-upstream origin changelog-$NEXT_VERSION

# Check CircleCI to make sure the deployments are running, when they are, monitor the pods with 
watch kubectl -n hmpps-book-secure-move-api-uat get pods

# When the new pods are running nicely (no reboot loops after a few mins), click "Approve Prod" in CircleCI and monitor the pods with
watch kubectl -n hmpps-book-secure-move-api-production get pods
Clone this wiki locally