mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Use --platform=managed for publish cloudrun, closes #587
This commit is contained in:
parent
9366d0bf19
commit
3e864b1625
2 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ def publish_subcommand(publish):
|
||||||
image_id = "gcr.io/{project}/{name}".format(project=project, name=name)
|
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 builds submit --tag {}".format(image_id), shell=True)
|
||||||
check_call(
|
check_call(
|
||||||
"gcloud beta run deploy --allow-unauthenticated --image {}{}".format(
|
"gcloud beta run deploy --allow-unauthenticated --platform=managed --image {}{}".format(
|
||||||
image_id, " {}".format(service) if service else ""
|
image_id, " {}".format(service) if service else ""
|
||||||
),
|
),
|
||||||
shell=True,
|
shell=True,
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ def test_publish_cloudrun(mock_call, mock_output, mock_which):
|
||||||
[
|
[
|
||||||
mock.call("gcloud builds submit --tag {}".format(tag), shell=True),
|
mock.call("gcloud builds submit --tag {}".format(tag), shell=True),
|
||||||
mock.call(
|
mock.call(
|
||||||
"gcloud beta run deploy --allow-unauthenticated --image {}".format(
|
"gcloud beta run deploy --allow-unauthenticated --platform=managed --image {}".format(
|
||||||
tag
|
tag
|
||||||
),
|
),
|
||||||
shell=True,
|
shell=True,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue