-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace container registery with artifact registry in CloudBuild #367
Replace container registery with artifact registry in CloudBuild #367
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix @renato-rudnicki
Lets switch to using_GAR_REPOSITORY
terraform-google-modules/terraform-google-bootstrap#97 from 2.2.1
release
Using version v2.2.1 of the Would the final form of the fix be something like this?
|
@daniel-cit yeah that looks right. Users of example-foundation can also pass a custom repo via |
With the last commit the docker build steps in the build yaml files are now using the
The result with the new version:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one question
build/cloudbuild-tf-apply.yaml
Outdated
entrypoint: /bin/bash | ||
args: | ||
- -c | ||
- | | ||
- |'' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
This line should not have been changed. We will revert this it.
9da305b
to
eb7dc2a
Compare
…#367) * Replace container registery with artifact registry in CloudBuild * Adding * Fixing cloudbuild-tf-appl.yaml
…#367) * Replace container registery with artifact registry in CloudBuild * Adding * Fixing cloudbuild-tf-appl.yaml
…#367) * Replace container registery with artifact registry in CloudBuild * Adding * Fixing cloudbuild-tf-appl.yaml
…#367) * Replace container registery with artifact registry in CloudBuild * Adding * Fixing cloudbuild-tf-appl.yaml
Fixes #366
This PR replaces
gcr.io/$PROJECT_ID/terraform
with$_DEFAULT_REGION-docker.pkg.dev/$PROJECT_ID/prj-tf-runners/terraform
in the CloudBuild files.Result with the fix: