diff --git a/.circleci/config.yml b/.circleci/config.yml index 314eb43a1..2e7afe334 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -87,6 +87,15 @@ workflows: version: 2 build-test-and-deploy: jobs: + - request-demo-build-approval: + type: approval + requires: + - helm_lint + filters: + branches: + only: + - /demo-.*/ + - hmpps/helm_lint: name: helm_lint - hmpps/build_docker: @@ -96,6 +105,7 @@ workflows: only: - main + - hmpps/deploy_env: name: deploy_dev env: 'dev' @@ -136,6 +146,37 @@ workflows: requires: - request-test-approval + - request-demo-build-and-deploy-approval: + type: approval + requires: + - helm_lint + filters: + branches: + only: + - /demo-.*/ + + - hmpps/build_docker: + name: build_docker_for_demo + filters: + branches: + only: + - /demo-.*/ + requires: + - request-demo-build-and-deploy-approval + + - hmpps/deploy_env: + name: deploy_demo_preview + env: "demo" + context: + - hmpps-common-vars + - hmpps-temporary-accommodation-ui-demo + requires: + - build_docker_for_demo + filters: + branches: + only: + - /demo-.*/ + - request-preprod-approval: type: approval requires: diff --git a/helm_deploy/values-demo.yaml b/helm_deploy/values-demo.yaml new file mode 100644 index 000000000..6578b67ef --- /dev/null +++ b/helm_deploy/values-demo.yaml @@ -0,0 +1,30 @@ +--- +# Per environment values which override defaults in hmpps-temporary-accommodation-ui/values.yaml + +generic-service: + replicaCount: 2 + + ingress: + hosts: + - temporary-accommodation-demo.hmpps.service.justice.gov.uk + - transitional-accommodation-demo.hmpps.service.justice.gov.uk + contextColour: green + tlsSecretName: hmpps-temporary-accommodation-demo-cert + + env: + ENVIRONMENT: demo + APPROVED_PREMISES_API_URL: 'https://approved-premises-api-demo.hmpps.service.justice.gov.uk' + FIRST_INGRESS_URL: 'https://temporary-accommodation-demo.hmpps.service.justice.gov.uk' + SECOND_INGRESS_URL: 'https://transitional-accommodation-demo.hmpps.service.justice.gov.uk' + HMPPS_AUTH_URL: 'https://sign-in-dev.hmpps.service.justice.gov.uk/auth' + TOKEN_VERIFICATION_API_URL: 'https://token-verification-api-dev.prison.service.justice.gov.uk' + AUDIT_LOG_ERRORS: 'true' + COMMUNITY_ACCOMMODATION_API_TIMEOUT_RESPONSE: 30000 + COMMUNITY_ACCOMMODATION_API_TIMEOUT_DEADLINE: 30000 + PAGINATION_ASSESSMENTS_DEFAULT_PAGE_SIZE: 100 + DOMAIN_EVENTS_EMIT_ENABLED: 'personArrived,personDeparted' + + allowlist: null + +generic-prometheus-alerts: + alertSeverity: digital-prison-service-demo