Skip to content

Commit 6771420

Browse files
committed
fix: aks github connector - only add workflow after requirements are in place
1 parent 6602c82 commit 6771420

File tree

1 file changed

+4
-0
lines changed
  • modules/aks/github-connector/buildingblock

1 file changed

+4
-0
lines changed

modules/aks/github-connector/buildingblock/github.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ resource "github_repository_file" "workflow" {
7373
commit_message = "Worflow for building and deploying container images to AKS"
7474
overwrite_on_create = true
7575

76+
depends_on = [
77+
github_repository_file.dockerfile, # workflow needs dockerfile to build image
78+
kubernetes_role_binding.github_actions, # workflow needs role binding to deploy
79+
]
7680
lifecycle {
7781
ignore_changes = [content]
7882
}

0 commit comments

Comments
 (0)