Skip to content

Commit

Permalink
Better handling of manifest creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-Ben committed Nov 16, 2023
1 parent f7e47f1 commit e9f437b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,17 @@ def build_and_push_image(
)

if args["image_dev"]:
push_manifest(config, architectures, args["image_dev"])
if config.gh_run_id is not None and config.gh_run_id != "":
push_manifest(config, architectures, args["image_dev"], config.gh_run_id)
image_to_push = args["image_dev"]
elif image_name == "e2e":
# If no image dev (only e2e is concerned) we push the normal image
image_to_push = args["image"]
else:
# If no image dev (only e2e is concerned) we push the manifest anyway
push_manifest(config, architectures, args["image"])
raise Exception("Dev image must be specified")

push_manifest(config, architectures, image_to_push)

if config.gh_run_id:
push_manifest(config, architectures, image_to_push, config.gh_run_id)

if release:
push_manifest(config, architectures, args["image"], args["release_version"])
Expand Down

0 comments on commit e9f437b

Please sign in to comment.