Skip to content

Commit

Permalink
remove printing
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed May 30, 2022
1 parent f757a17 commit a1c83eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion pakages/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def push(self, target):
password = os.environ.get("ORAS_PASS")
reg = pakages.oras.Registry()
if user and password:
print('Found username and password for basic auth')
print("Found username and password for basic auth")
reg.set_basic_auth(user, password)
reg.push(target, self.archives, self.annotations)

Expand Down
7 changes: 0 additions & 7 deletions pakages/oras.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
__license__ = "Apache-2.0"

import os
import copy
import requests
import oras.oci
import oras.defaults
import oras.provider
from oras.decorator import ensure_container
from pakages.logger import logger
from typing import *


class Registry(oras.provider.Registry):
Expand Down Expand Up @@ -52,8 +49,6 @@ def push(self, container, archives: dict, annotations=None):
manifest["layers"].append(layer)

# Upload the blob layer
print(container)
print(f"UPLOADING {blob}")
response = self._upload_blob(blob, container, layer)
self._check_200_response(response)

Expand All @@ -75,13 +70,11 @@ def push(self, container, archives: dict, annotations=None):
conf["annotations"] = config_annots

# Config is just another layer blob!
print(f"UPLOADING {conf}")
response = self._upload_blob(config_file, container, conf)
self._check_200_response(response)

# Final upload of the manifest
manifest["config"] = conf
print(f"UPLOADING {manifest}")
self._check_200_response(self._upload_manifest(manifest, container))
print(f"Successfully pushed {container}")
return response

0 comments on commit a1c83eb

Please sign in to comment.