Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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