Skip to content

Commit

Permalink
fix: using pulumi.InvokeOptions insted of pulumi.ResourceOptions for …
Browse files Browse the repository at this point in the history
…pulumi_docker.get_registry_image
  • Loading branch information
tmeckel committed Jul 6, 2024
1 parent fa6ea94 commit a7dcc3b
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions stack/cloud_run_images.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""images for cloud run
"""
"""images for cloud run"""

import pulumi
import pulumi_docker as docker
import pulumi_gcp as gcp
Expand All @@ -20,21 +20,27 @@ def construct_name_images(resource_name: str) -> str:

cloud_run_offset_tile_registry_image = docker.get_registry_image(
name=gcp.container.get_registry_image(
name=construct_name_images("cloud-run-offset-tile-image:latest")
name=construct_name_images("cloud-run-offset-tile-image:latest"),
).image_url,
opts=pulumi.ResourceOptions(provider=gcr_docker_provider),
opts=pulumi.InvokeOptions(
provider=gcr_docker_provider,
),
)
cloud_run_orchestrator_registry_image = docker.get_registry_image(
name=gcp.container.get_registry_image(
name=construct_name_images("cloud-run-orchestrator-image:latest")
name=construct_name_images("cloud-run-orchestrator-image:latest"),
).image_url,
opts=pulumi.ResourceOptions(provider=gcr_docker_provider),
opts=pulumi.InvokeOptions(
provider=gcr_docker_provider,
),
)
cloud_run_tipg_registry_image = docker.get_registry_image(
name=gcp.container.get_registry_image(
name=construct_name_images("cloud-run-tipg-image:latest")
name=construct_name_images("cloud-run-tipg-image:latest"),
).image_url,
opts=pulumi.ResourceOptions(provider=gcr_docker_provider),
opts=pulumi.InvokeOptions(
provider=gcr_docker_provider,
),
)


Expand Down

0 comments on commit a7dcc3b

Please sign in to comment.