- Wait for the Docker build to complete on CircleCI (
https://circleci.com/gh/ministryofjustice/<repo_name>
) for the feature branch. - Approve the pending staging deployment on CircleCI.
Watch the how-to video:
- 🚨 Unfortunately, our deployment process does not yet fail the build if the deployment fails.
To see if the deploy was successful, follow Kubernetes deployments, pods and events for any feedback:
kubectl --namespace <name-space-name> get pods,deployments -o wide kubectl --namespace <name-space-name> get events
- Please make sure you tested on a non-production environment before merging.
- Merge your feature branch pull request to
master
. - Wait for the Docker build to complete on CircleCI (
https://circleci.com/gh/ministryofjustice/<repo_name>/tree/master
) for themaster
branch. - Approve the pending staging deployment on CircleCI (see 'Releasing to non-production above' video for more info).
- Approve the pending production deployment on CircleCI.
- 🚨 Unfortunately, our deployment process does not yet fail the build if the deployment fails.
To see if the deploy was successful, follow Kubernetes deployments, pods and events for any feedback:
kubectl --namespace <name-space-name> get pods,deployments -o wide kubectl --namespace <name-space-name> get events
- Check the rollout history with
kubectl rollout history deployment/<deployment> --namespace=<name-space-name>
- Roll back to the previous version with
kubectl rollout undo deployment/<deployment> --namespace=<name-space-name>
📝 The <name-space-name>
is the applications kubernetes namespace. kubectl get namespaces | grep laa-cla
gets you a list of laa-cla namespaces
📝 The <deployment>
> is the kubernetes deployment name. kubectl -n <namespace> get deployments
gets you the deployment name