Skip to content

Commit 04ba1d1

Browse files
ensure relase test fails if apply fails, fix bug in environment variable name causing codebuild build to fail
1 parent 95de207 commit 04ba1d1

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/release-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ jobs:
9292

9393
- name: Terraform Apply
9494
id: tf_apply
95-
continue-on-error: true
9695
working-directory: utils/cicd
9796
run: terraform apply -input=false test.tfplan
9897

filmdrop_ui.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ resource "aws_codebuild_project" "filmdrop_ui_codebuild" {
4848

4949
environment_variable {
5050
name = "CONTENT_BUCKET"
51-
value = var.filmdrop_ui_bucket_name
51+
value = aws_s3_bucket.filmdrop_ui_source_config.bucket
5252
}
5353
}
5454

@@ -130,7 +130,7 @@ resource "random_id" "suffix" {
130130
}
131131

132132
resource "aws_s3_bucket" "filmdrop_ui_source_config" {
133-
bucket = "filmdrop-ui-config-${random_id.suffix.hex}"
133+
bucket = "${var.filmdrop_ui_bucket_name}-${random_id.suffix.hex}"
134134
force_destroy = true
135135
}
136136

utils/cicd/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ module "main" {
1717
vpc_id = module.vpc-data.vpc_id
1818
vpc_private_subnet_ids = module.vpc-data.private_subnet_ids
1919
vpc_security_group_ids = [module.vpc-data.security_group_id]
20-
filmdrop_ui_bucket_name = "filmdrop-ui-content"
20+
filmdrop_ui_bucket_name = "filmdrop-ui-config"
2121
}

0 commit comments

Comments
 (0)