Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
tunacinsoy committed Aug 27, 2024
1 parent d55429c commit a5b783e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dev-cd-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
secrets: inherit
run-tests:
name: Run Integration Tests
needs: create-environment-and-deploy-app
needs: [create-environment-and-deploy-app]
uses: ./.github/workflows/run-tests.yml
secrets: inherit
binary-auth:
name: Attest Images
needs: run-tests
needs: [run-tests]
uses: ./.github/workflows/attest-images.yml
secrets: inherit
raise-pull-request:
name: Raise PR to prod branch
needs: binary-auth
needs: [binary-auth]
uses: ./.github/workflows/raise-pr.yml
secrets: inherit
2 changes: 1 addition & 1 deletion terraform/binaryauth.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resource "google_kms_key_ring" "qa-attestor-keyring" {
prevent_destroy = false
}
}
# trigger

module "qa-attestor" {
count = var.branch == "dev" ? 1 : 0
source = "terraform-google-modules/kubernetes-engine/google//modules/binary-authorization"
Expand Down
2 changes: 1 addition & 1 deletion terraform/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resource "google_container_cluster" "main" {
location = var.location
initial_node_count = 3

# Only for prod env it will be deployed, since prod won't accept not attested images
# Only for prod env it will be deployed, since prod won't accept not-attested images
dynamic "binary_authorization" {
for_each = var.branch == "prod" ? [1] : []
content {
Expand Down

0 comments on commit a5b783e

Please sign in to comment.