From 066e84d55ad611bf6818a05e0f37396fe7a117e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Srokosz?= Date: Wed, 14 Dec 2022 15:37:15 +0100 Subject: [PATCH] Fix: build Docker images before pushing (#6) --- setup.py | 2 +- src/deploy.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5709628..71ccbef 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name="python-deploy", - version="4.0.0", + version="4.0.1", author="msm, psrok1", author_email="info@cert.pl", description="Build, push and deploy k8s services with single " diff --git a/src/deploy.py b/src/deploy.py index c4aa2b5..53626cc 100755 --- a/src/deploy.py +++ b/src/deploy.py @@ -80,6 +80,7 @@ def build(self) -> None: service.build_docker([self.version_tag] + extra_tags, self.args.no_cache) def push(self) -> None: + self.build() extra_tags = self.args.tag or [] for service in self.config.get_services(): logger.info(f"Pushing image for {service.service_name}")