Search code examples
google-cloud-platformgoogle-cloud-functions

changing image repository from Container Registry to Artifact Registry


With GCP's announcement of deprecating Container Registry, I am trying to migrate my CR images to Artifact Registry.

While GCP provides a detailed guide on this migration, all of my images are for Cloud Functions. I was wondering if instead of following the guide, I could just simply switch the setting for the Cloud Function.

I have already tested that changing this setting creates a folder inside Artifact Registry for each Cloud Function.

Will this have any negative side effects that I am not aware of?

enter image description here


Solution

  • You're right and can change to Artifact Registry with these options:

    It´s explained here:

    https://cloud.google.com/functions/docs/building#image_registry

    1. Go to the Cloud Functions page in the Google Cloud console
    2. Click the name of the function for which you want to use Artifact Registry.
    3. Click Edit.
    4. Click Runtime, build... to expand the advanced configuration options.
    5. Click Security and Image Repo from the menu bar to open the security tab
    6. Under Image repository depending on which type of Artifact Registry you are using
    7. Click Next.
    8. Click Deploy.