Skip to content

Commit

Permalink
CCM-7651: merge CM-8071
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-r-bjss committed Dec 17, 2024
2 parents 17a8afb + 94c3829 commit 3a16698
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/pr_destroy_dynamic_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
--arg targetAccountGroup "nhs-notify-iam-dev" \
--arg targetComponent "branch" \
--arg terraformAction "destroy" \
--arg overrides "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" \
'{ "ref": "main",
"inputs": {
"infraRepoName": $infraRepoName,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
resource "null_resource" "initial_amplify_branch_build" {
# Trigger initial build when the branch is creates. Subsequent commits to the branch would cause builds anyway
triggers = {
csi = local.csi
amplify_app_id = local.app.amplify["id"]
amplify_branch_name = module.amplify_branch.name
}

provisioner "local-exec" {
command = "aws amplify start-job --app-id ${self.triggers.amplify_app_id} --branch-name ${self.triggers.amplify_branch_name} --job-type 'RELEASE'"
}
}

0 comments on commit 3a16698

Please sign in to comment.