Skip to content

Commit 9407410

Browse files
authored
Merge pull request #1568 from alphagov/add-product-page-review-app
Add a github actions runner for forms-product-page
2 parents 039e697 + f1c600b commit 9407410

3 files changed

Lines changed: 29 additions & 0 deletions

File tree

infra/deployments/integration/review/ecr.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ module "forms_runner_container_repo" {
77
source = "./container-repository"
88
repository_name = "forms-runner"
99
}
10+
11+
module "forms_product_page_container_repo" {
12+
source = "./container-repository"
13+
repository_name = "forms-product-page"
14+
}

infra/deployments/integration/review/github_actions_runner.tf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,22 @@ module "forms_runner" {
4848
dockerhub_username_parameter_name = aws_ssm_parameter.dockerhub_username.name
4949
task_execution_role_arn = aws_iam_role.ecs_execution.arn
5050
}
51+
52+
module "forms_product_page" {
53+
source = "./gha-runner"
54+
55+
application_name = "forms-product-page"
56+
application_source_repository = "https://github.com/alphagov/forms-product-page"
57+
58+
autoscaling_role_arn = aws_iam_service_linked_role.app_autoscaling.arn
59+
aws_ecr_repository_arn = module.forms_product_page_container_repo.arn
60+
aws_ecs_cluster_arn = aws_ecs_cluster.review.arn
61+
aws_ecs_cluster_name = aws_ecs_cluster.review.name
62+
codestar_connection_arn = var.codestar_connection_arn
63+
deploy_account_id = var.deploy_account_id
64+
dockerhub_password_parameter_arn = aws_ssm_parameter.dockerhub_password.arn
65+
dockerhub_password_parameter_name = aws_ssm_parameter.dockerhub_password.name
66+
dockerhub_username_parameter_arn = aws_ssm_parameter.dockerhub_username.arn
67+
dockerhub_username_parameter_name = aws_ssm_parameter.dockerhub_username.name
68+
task_execution_role_arn = aws_iam_role.ecs_execution.arn
69+
}

infra/deployments/integration/review/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ output "forms_runner_container_repo_url" {
3838
value = module.forms_runner_container_repo.url
3939
}
4040

41+
output "forms_product_page_container_repo_url" {
42+
description = "The URL of the forms-product-page container repository"
43+
value = module.forms_product_page_container_repo.url
44+
}
45+
4146
output "traefik_basic_auth_credentials" {
4247
description = "The credentials Traefik uses for basic authentication in front of review apps"
4348
value = data.aws_ssm_parameter.traefik_basic_auth_credentials.value

0 commit comments

Comments
 (0)