From ff228c687569d010ab80b76ccfad60cfd2f24134 Mon Sep 17 00:00:00 2001 From: simonmitchell Date: Mon, 5 Feb 2024 13:40:36 +0000 Subject: [PATCH 1/2] =?UTF-8?q?HAAR-2297:=20=F0=9F=9A=80=20deploy=20to=20h?= =?UTF-8?q?mpps-auth-stage=20namespace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 17 ++++++++++++++++- helm_deploy/values-stage.yaml | 19 +++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 helm_deploy/values-stage.yaml diff --git a/.circleci/config.yml b/.circleci/config.yml index 84c01063..f0ae12e6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -147,6 +147,22 @@ workflows: - integration_test - build_docker helm_timeout: 5m + - hmpps/deploy_env: + name: deploy_stage + env: "stage" + context: + - hmpps-common-vars + - hmpps-authorization-stage + filters: + branches: + only: + - main + requires: + - helm_lint + - unit_test + - integration_test + - build_docker + helm_timeout: 5m # - request-preprod-approval: # type: approval # requires: @@ -159,7 +175,6 @@ workflows: # context: # - hmpps-common-vars # - hmpps-authorization-preprod -# - hmpps-template-typescript-preprod # requires: # - request-preprod-approval # helm_timeout: 5m diff --git a/helm_deploy/values-stage.yaml b/helm_deploy/values-stage.yaml new file mode 100644 index 00000000..75ff8969 --- /dev/null +++ b/helm_deploy/values-stage.yaml @@ -0,0 +1,19 @@ +--- +# Per environment values which override defaults in hmpps-authorization/values.yaml + +generic-service: + replicaCount: 2 + + ingress: + host: authorization-stage.hmpps.service.justice.gov.uk + + env: + INGRESS_URL: "https://authorization-stage.hmpps.service.justice.gov.uk" + HMPPS_AUTH_URL: "https://sign-in-stage.hmpps.service.justice.gov.uk/auth" + HMPPS_AUTHORIZATION_SERVER_URL: "https://authorization-server-stage.hmpps.service.justice.gov.uk" + MANAGE_USERS_API_URL: "https://manage-users-api-stage.hmpps.service.justice.gov.uk" + TOKEN_VERIFICATION_API_URL: "https://token-verification-api-stage.prison.service.justice.gov.uk" + ENVIRONMENT_NAME: DEV + +generic-prometheus-alerts: + alertSeverity: digital-prison-service-dev From d9d859077a5809d3f3a35d0d3b9a7ae53ea9132b Mon Sep 17 00:00:00 2001 From: simonmitchell Date: Wed, 7 Feb 2024 08:38:34 +0000 Subject: [PATCH 2/2] =?UTF-8?q?HAAR-2297:=20=F0=9F=9A=80=20deploy=20to=20h?= =?UTF-8?q?mpps-auth-stage=20namespace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helm_deploy/values-stage.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm_deploy/values-stage.yaml b/helm_deploy/values-stage.yaml index 75ff8969..e64188fa 100644 --- a/helm_deploy/values-stage.yaml +++ b/helm_deploy/values-stage.yaml @@ -13,7 +13,7 @@ generic-service: HMPPS_AUTHORIZATION_SERVER_URL: "https://authorization-server-stage.hmpps.service.justice.gov.uk" MANAGE_USERS_API_URL: "https://manage-users-api-stage.hmpps.service.justice.gov.uk" TOKEN_VERIFICATION_API_URL: "https://token-verification-api-stage.prison.service.justice.gov.uk" - ENVIRONMENT_NAME: DEV + ENVIRONMENT_NAME: STAGE generic-prometheus-alerts: alertSeverity: digital-prison-service-dev