-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use Artifact Registry #46
Conversation
Terraform Initialization ⚙️
|
|
||
google = { | ||
source = "hashicorp/google" | ||
version = "5.27.0" |
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.
google providerのバージョン指定をしていなかった。
最新バージョンにすることで、docker_registry
が指定できるようになり、デフォルトで ARTIFACT_REGISTRY
が使用される。
https://registry.terraform.io/providers/hashicorp/google/5.27.0/docs/resources/cloudfunctions2_function
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.
custom registryを指定しない場合、asia.gcr.io/haraiai
以下に勝手に作られている。良さそう
https://console.cloud.google.com/artifacts/docker/haraiai/asia/asia.gcr.io?authuser=1&project=haraiai
Changes
container registry から artifact registry に移行する。
functionも2nd genに移行したほうが良いがこのPRではやらない。
resolve #34
Ref
Container Registry からの移行 | Artifact Registry のドキュメント | Google Cloud