From 88f75c091be3fb9be41fb399c6b17cf7464b28ad Mon Sep 17 00:00:00 2001 From: Mikhail Gordeev Date: Tue, 27 Dec 2022 02:42:25 +0300 Subject: [PATCH] Fix running only push stage --- build.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/build.py b/build.py index ee17d65..ec5c080 100755 --- a/build.py +++ b/build.py @@ -418,16 +418,15 @@ def main(): db.remove_dockerfiles() if "render_dockerfiles" in args.stages: db.render_dockerfiles(branch) - if "build" in args.stages: - for image in db.get_build_order(): - if f"{organization}/{image}" not in args.images: - continue + for image in db.get_build_order(): + if f"{organization}/{image}" not in args.images: + continue - if "build" in args.stages: - db.podman_build(image, args.arches, branch) + if "build" in args.stages: + db.podman_build(image, args.arches, branch) - if "push" in args.stages: - db.podman_push(image, branch, args.sign) + if "push" in args.stages: + db.podman_push(image, branch, args.sign) if __name__ == "__main__":