pyfunceble_docker/publish.py
def are_we_authorized_to_push(self, images: dict) -> bool:
        """
        Checks if we are authorized to push.
        """

        if "RepoTags" not in images or not images["RepoTags"]:
            return False

        for repo_tag in images["RepoTags"]:
            tag = repo_tag.split(":")[-1]

            if tag == "latest":
                continue

            if self.is_already_pushed(tag):
                return False
        return True

        Checks if we are authorized to push.
        
Checks if we are authorized to push.
Checks if we are authorized to push .
def are_we_authorized_to_push(self, images: dict) -> bool:
        if "RepoTags" not in images or not images["RepoTags"]:
            return False
        for repo_tag in images["RepoTags"]:
            tag = repo_tag.split(":")[-1]
            if tag == "latest":
                continue
            if self.is_already_pushed(tag):
                return False
        return True
def are_we_authorized_to_push ( self , images : dict ) -> bool : if "RepoTags" not in images or not images [ "RepoTags" ] : return False for repo_tag in images [ "RepoTags" ] : tag = repo_tag . split ( ":" ) [ - 1 ] if tag == "latest" : continue if self . is_already_pushed ( tag ) : return False return True
Checks if we are authorized to push.
Checks if we are authorized to push .
"""
        Checks if we are authorized to push.
        """
self
images
dict