This PR updates the GitHub action used for deploying a Cloud Function to include the --image-url flag followed by the URL of the GCR container image in the gcloud functions deploy command, ensuring continued use of GCR as a non-default option after January 15, 2024.
Description
Google Cloud Functions recently announced a transition from using GCR to AR as the default storage for container images. Although this change will not take effect until at least January 15, 2024, it is recommended that users explicitly set the image registry setting back to GCR if they wish to continue using it as a non-default option.
In light of this announcement, this PR modifies the GitHub action used for deploying a Cloud Function by including the --image-url flag followed by the URL of the GCR container image in the gcloud functions deploy command. This ensures that the Cloud Function will continue to use the GCR container image even after the transition to AR takes place.
Related Issue(s)
None.
Motivation and Context
This change was necessary to ensure that the Cloud Function will continue to use the GCR container image even after the transition from GCR to AR takes place. This PR updates the GitHub action used for deploying a Cloud Function by including the --image-url flag followed by the URL of the GCR container image in the gcloud functions deploy command.
Types of changes
[x] New feature (non-breaking change which adds functionality)
Summary
This PR updates the GitHub action used for deploying a Cloud Function to include the
--image-url
flag followed by the URL of the GCR container image in thegcloud functions deploy
command, ensuring continued use of GCR as a non-default option after January 15, 2024.Description
Google Cloud Functions recently announced a transition from using GCR to AR as the default storage for container images. Although this change will not take effect until at least January 15, 2024, it is recommended that users explicitly set the image registry setting back to GCR if they wish to continue using it as a non-default option.
In light of this announcement, this PR modifies the GitHub action used for deploying a Cloud Function by including the
--image-url
flag followed by the URL of the GCR container image in thegcloud functions deploy
command. This ensures that the Cloud Function will continue to use the GCR container image even after the transition to AR takes place.Related Issue(s)
None.
Motivation and Context
This change was necessary to ensure that the Cloud Function will continue to use the GCR container image even after the transition from GCR to AR takes place. This PR updates the GitHub action used for deploying a Cloud Function by including the
--image-url
flag followed by the URL of the GCR container image in thegcloud functions deploy
command.Types of changes