Check for existing tag in remote repo before building. #764

Merged
telackey merged 14 commits from telackey/remotetag into main 2024-02-24 03:22:51 +00:00
2 changed files with 1 additions and 4 deletions
Showing only changes of commit d8f5d41261 - Show all commits

View File

@ -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

View File

@ -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,