gcloud run is now GA, s/beta// (#660)

Thanks, @glasnt
pull/579/merge
Katie McLaughlin 2020-01-22 10:28:11 +11:00 zatwierdzone przez Simon Willison
rodzic 3c861f363d
commit 34d77d780f
3 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -127,7 +127,7 @@ def publish_subcommand(publish):
image_id = "gcr.io/{project}/{name}".format(project=project, name=name)
check_call("gcloud builds submit --tag {}".format(image_id), shell=True)
check_call(
"gcloud beta run deploy --allow-unauthenticated --platform=managed --image {} {}".format(
"gcloud run deploy --allow-unauthenticated --platform=managed --image {} {}".format(
image_id, service,
),
shell=True,
@ -137,7 +137,7 @@ def publish_subcommand(publish):
def get_existing_services():
services = json.loads(
check_output(
"gcloud beta run services list --platform=managed --format json",
"gcloud run services list --platform=managed --format json",
shell=True,
universal_newlines=True,
)

Wyświetl plik

@ -37,7 +37,7 @@ You can specify a custom app name by passing ``-n my-app-name`` to the publish c
Publishing to Google Cloud Run
------------------------------
`Google Cloud Run <https://cloud.google.com/run/>`__ launched as a beta in in April 2019. It allows you to publish data in a scale-to-zero environment, so your application will start running when the first request is received and will shut down again when traffic ceases. This means you only pay for time spent serving traffic.
`Google Cloud Run <https://cloud.google.com/run/>`__ launched as a GA in in November 2019. It allows you to publish data in a scale-to-zero environment, so your application will start running when the first request is received and will shut down again when traffic ceases. This means you only pay for time spent serving traffic.
You will first need to install and configure the Google Cloud CLI tools by following `these instructions <https://cloud.google.com/sdk/>`__.

Wyświetl plik

@ -62,7 +62,7 @@ Service name: input-service
[
mock.call("gcloud builds submit --tag {}".format(tag), shell=True),
mock.call(
"gcloud beta run deploy --allow-unauthenticated --platform=managed --image {} input-service".format(
"gcloud run deploy --allow-unauthenticated --platform=managed --image {} input-service".format(
tag
),
shell=True,
@ -89,7 +89,7 @@ def test_publish_cloudrun(mock_call, mock_output, mock_which):
[
mock.call("gcloud builds submit --tag {}".format(tag), shell=True),
mock.call(
"gcloud beta run deploy --allow-unauthenticated --platform=managed --image {} test".format(
"gcloud run deploy --allow-unauthenticated --platform=managed --image {} test".format(
tag
),
shell=True,