Skip to content

Commit

Permalink
Add pre- and post-build info logging
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Oct 29, 2024
1 parent db08454 commit b57e7b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ def main() -> None:
job_set: Dict[str, JobQueue] = {}
for component in to_do:
spec = build_specs[component]
logging.info(f"Starting pre-build for {component}")
spec.pre_build()
image_name = get_image_name(args.repo, spec.name, args.tag)
job_opts = ["-t", image_name, "-f", "Dockerfile", "."]
Expand All @@ -323,6 +324,7 @@ def main() -> None:
time.sleep(5.0)
# Run the post_build cleanup functions
for component in to_do:
logging.info(f"Starting post-build for {component}")
build_specs[component].post_build()

# Print job summary if output mode is ALL
Expand Down

0 comments on commit b57e7b5

Please sign in to comment.