Skip to content

Commit

Permalink
take pulumi-docker down from the major version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
4141done committed Jul 20, 2023
1 parent 796587c commit 66d63cd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pulumi/python/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pulumi = "~=3.75"
fart = "~=0.1"
lolcat = "~=1.4"
passlib = "~=1.7"
pulumi-docker = "~=4.3"
pulumi-docker = "~=3.3"
pulumi-kubernetes = "~=3.30"
setuptools-git-versioning = "~=1.13"
pyyaml = "~=6.0"
Expand Down
14 changes: 7 additions & 7 deletions pulumi/python/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ def format_registry_url_for_docker_login(self):
# We strip out the path from the URL because it isn't used when logging into a repository
return f'{registry_host_url.scheme}://{registry_host_url.hostname}'

def login_to_registry(self) -> Optional[docker.LoginResult]:
async def login_to_registry(self) -> Optional[docker.LoginResult]:
registry = docker.Registry(registry=self.format_registry_url_for_docker_login(),
username=self.credentials.username,
password=self.credentials.password)

docker.login_to_registry(registry=registry, log_resource=None)
await docker.login_to_registry(registry=registry, log_resource=None)
pulumi.log.info(f'Logged into container registry: {registry.registry}')

if not docker.login_results:
Expand Down

0 comments on commit 66d63cd

Please sign in to comment.