Skip to content

Commit

Permalink
update azure-py example so it at least compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
guineveresaenger committed Nov 18, 2022
1 parent c06d3fe commit fb7beee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/azure-py/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pulumi
from pulumi_azure import core, containerservice
from pulumi_docker import Image, ImageRegistry, DockerBuild
from pulumi_docker import Image, RegistryArgs, DockerBuildArgs

custom_image = "app"

Expand All @@ -14,6 +14,9 @@
my_image = Image("myimage",
image_name=registry.login_server.apply(
lambda server: f'{server}/{custom_image}:v1.0.0'),
build=DockerBuild(context=f'./{custom_image}'),
registry=ImageRegistry(registry.login_server, registry.admin_username, registry.admin_password)
build=DockerBuildArgs(context=f'./{custom_image}'),
registry=RegistryArgs(
registry=registry.login_server,
username=registry.admin_username,
password=registry.admin_password)
)

0 comments on commit fb7beee

Please sign in to comment.