Skip to content

Commit

Permalink
Merge pull request #70 from ministryofjustice/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
itoulou authored Sep 21, 2023
2 parents e28433a + e4d879a commit 07c2b5b
Show file tree
Hide file tree
Showing 15 changed files with 545 additions and 563 deletions.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ jobs:
kubectl config set-context ${K8S_CLUSTER_NAME} --cluster=${K8S_CLUSTER_NAME} --user=circleci --namespace=${K8S_NAMESPACE_DEV}
kubectl config use-context ${K8S_CLUSTER_NAME}
- run:
name: rolling update image jobs
command: |
sed -i -e s/:grc-admin-latest/:grc-admin-$CIRCLE_SHA1/ deploy/development/jobs/notify-applicants-inactive-applications.yaml
kubectl apply -n grc-dev --record=false -f ./deploy/development/jobs
- deploy:
name: rolling update image
command: |
Expand All @@ -199,6 +205,7 @@ jobs:
sed -i -e s/:grc-dashboard-latest/:grc-dashboard-$CIRCLE_SHA1/ deploy/development/dashboard-deployment.yaml
kubectl apply -n grc-dev --record=false -f ./deploy/development
deploy_image_to_preprod:
<<: *cloud_container
steps:
Expand All @@ -212,6 +219,12 @@ jobs:
kubectl config set-context ${K8S_CLUSTER_NAME} --cluster=${K8S_CLUSTER_NAME} --user=circleci --namespace=${K8S_NAMESPACE_PREPROD}
kubectl config use-context ${K8S_CLUSTER_NAME}
- run:
name: rolling update image jobs
command: |
sed -i -e s/:grc-admin-latest/:grc-admin-$CIRCLE_SHA1/ deploy/staging/jobs/notify-applicants-inactive-applications.yaml
kubectl apply -n grc-preprod --record=false -f ./deploy/staging/jobs
- deploy:
name: rolling update image
command: |
Expand All @@ -232,6 +245,13 @@ jobs:
kubectl config set-credentials circleci --token=${K8S_TOKEN_PROD}
kubectl config set-context ${K8S_CLUSTER_NAME} --cluster=${K8S_CLUSTER_NAME} --user=circleci --namespace=${K8S_NAMESPACE_PROD}
kubectl config use-context ${K8S_CLUSTER_NAME}
- run:
name: rolling update image jobs
command: |
sed -i -e s/:grc-admin-latest/:grc-admin-$CIRCLE_SHA1/ deploy/production/jobs/notify-applicants-inactive-applications.yaml
kubectl apply -n grc-prod --record=false -f ./deploy/production/jobs
- deploy:
name: rolling update image
command: |
Expand Down
Loading

0 comments on commit 07c2b5b

Please sign in to comment.