Skip to content

Commit

Permalink
Merge pull request #73 from ministryofjustice/jakemulley-patch-1
Browse files Browse the repository at this point in the history
Make GitHub Actions variables uppercase
  • Loading branch information
jakemulley authored May 3, 2023
2 parents 0235d4e + a014e16 commit fddad08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ resource "aws_iam_role_policy_attachment" "ecr" {
# GitHub Actions variables and secrets
locals {
github_variable_names = {
ECR_ROLE_TO_ASSUME = join("_", compact([var.github_actions_prefix, "ECR_ROLE_TO_ASSUME"]))
ECR_REGION = join("_", compact([var.github_actions_prefix, "ECR_REGION"]))
ECR_REPOSITORY = join("_", compact([var.github_actions_prefix, "ECR_REPOSITORY"]))
ECR_ROLE_TO_ASSUME = upper(join("_", compact([var.github_actions_prefix, "ECR_ROLE_TO_ASSUME"])))
ECR_REGION = upper(join("_", compact([var.github_actions_prefix, "ECR_REGION"])))
ECR_REPOSITORY = upper(join("_", compact([var.github_actions_prefix, "ECR_REPOSITORY"])))
}

github_repos = toset(var.github_repositories)
Expand Down

0 comments on commit fddad08

Please sign in to comment.