Skip to content

Commit

Permalink
feat: Replace container registry with artifact registry in CloudBuild (
Browse files Browse the repository at this point in the history
…#367)

* Replace container registery with artifact registry in CloudBuild

* Adding

* Fixing cloudbuild-tf-appl.yaml
  • Loading branch information
renato-rudnicki authored and bharathkkb committed Mar 31, 2021
1 parent 2ac0466 commit 6b6469b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions build/cloudbuild-tf-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ substitutions:
_POLICY_REPO: '/workspace/policy-library' # add path to policies here https://github.com/forseti-security/policy-library/blob/master/docs/user_guide.md#how-to-use-terraform-validator
steps:
- id: 'setup'
name: gcr.io/$PROJECT_ID/terraform
name: $_DEFAULT_REGION-docker.pkg.dev/$PROJECT_ID/$_GAR_REPOSITORY/terraform
entrypoint: /bin/bash
args:
- -c
Expand All @@ -32,7 +32,7 @@ steps:
# [START tf-init]
- id: 'tf init'
name: gcr.io/${PROJECT_ID}/terraform
name: $_DEFAULT_REGION-docker.pkg.dev/$PROJECT_ID/$_GAR_REPOSITORY/terraform
entrypoint: /bin/bash
args:
- -c
Expand All @@ -41,7 +41,7 @@ steps:
# [START tf-plan]
- id: 'tf plan'
name: gcr.io/${PROJECT_ID}/terraform
name: $_DEFAULT_REGION-docker.pkg.dev/$PROJECT_ID/$_GAR_REPOSITORY/terraform
entrypoint: /bin/bash
args:
- -c
Expand All @@ -50,7 +50,7 @@ steps:
# [START tf-validate]
- id: 'tf validate'
name: gcr.io/${PROJECT_ID}/terraform
name: $_DEFAULT_REGION-docker.pkg.dev/$PROJECT_ID/$_GAR_REPOSITORY/terraform
entrypoint: /bin/bash
args:
- -c
Expand All @@ -59,7 +59,7 @@ steps:
# [START tf-apply]
- id: 'tf apply'
name: gcr.io/${PROJECT_ID}/terraform
name: $_DEFAULT_REGION-docker.pkg.dev/$PROJECT_ID/$_GAR_REPOSITORY/terraform
entrypoint: /bin/bash
args:
- -c
Expand Down
4 changes: 2 additions & 2 deletions build/cloudbuild-tf-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ substitutions:
_POLICY_REPO: '/workspace/policy-library' # add path to policies here https://github.com/forseti-security/policy-library/blob/master/docs/user_guide.md#how-to-use-terraform-validator
steps:
- id: 'setup'
name: gcr.io/$PROJECT_ID/terraform
name: $_DEFAULT_REGION-docker.pkg.dev/$PROJECT_ID/$_GAR_REPOSITORY/terraform
entrypoint: /bin/bash
args:
- -c
Expand All @@ -32,7 +32,7 @@ steps:
# [START tf-plan_validate_all]
- id: 'tf plan validate all'
name: gcr.io/${PROJECT_ID}/terraform
name: $_DEFAULT_REGION-docker.pkg.dev/$PROJECT_ID/$_GAR_REPOSITORY/terraform
entrypoint: /bin/bash
args:
- -c
Expand Down

0 comments on commit 6b6469b

Please sign in to comment.