forked from alt/image-forge
Fix running only push stage
This commit is contained in:
parent
596ab36b44
commit
88f75c091b
15
build.py
15
build.py
@ -418,16 +418,15 @@ def main():
|
|||||||
db.remove_dockerfiles()
|
db.remove_dockerfiles()
|
||||||
if "render_dockerfiles" in args.stages:
|
if "render_dockerfiles" in args.stages:
|
||||||
db.render_dockerfiles(branch)
|
db.render_dockerfiles(branch)
|
||||||
if "build" in args.stages:
|
for image in db.get_build_order():
|
||||||
for image in db.get_build_order():
|
if f"{organization}/{image}" not in args.images:
|
||||||
if f"{organization}/{image}" not in args.images:
|
continue
|
||||||
continue
|
|
||||||
|
|
||||||
if "build" in args.stages:
|
if "build" in args.stages:
|
||||||
db.podman_build(image, args.arches, branch)
|
db.podman_build(image, args.arches, branch)
|
||||||
|
|
||||||
if "push" in args.stages:
|
if "push" in args.stages:
|
||||||
db.podman_push(image, branch, args.sign)
|
db.podman_push(image, branch, args.sign)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user