Check for existing tag in remote repo before building. #764
@ -35,7 +35,7 @@ def remote_image_exists(local_tag: str, remote_repo_url: str):
|
||||
remote_tag = remote_tag_for_image(local_tag, remote_repo_url)
|
||||
result = docker.manifest.inspect(remote_tag)
|
||||
return True if result else False
|
||||
except Exception as e: # noqa: E722
|
||||
except Exception: # noqa: E722
|
||||
return False
|
||||
|
||||
|
||||
|
@ -12,7 +12,6 @@
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
import shlex
|
||||
@ -24,9 +23,7 @@ import uuid
|
||||
|
||||
import click
|
||||
|
||||
from stack_orchestrator import constants
|
||||
from stack_orchestrator.deploy.images import remote_image_exists
|
||||
from stack_orchestrator.deploy.spec import Spec
|
||||
from stack_orchestrator.deploy.webapp import deploy_webapp
|
||||
from stack_orchestrator.deploy.webapp.util import (LaconicRegistryClient,
|
||||
build_container_image, push_container_image,
|
||||
|
Loading…
Reference in New Issue
Block a user