Skip to content

Commit

Permalink
[build] Fix release bug on headless builds; Fix image load bug
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Nov 12, 2024
1 parent 7f23e66 commit f17b822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/scripts/app_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_release() -> str:
num_commits = match[2]
# Get the branch name
result = run_cmd(["git", "branch", "--show-current"], chomp=True)
branch_name = re.sub("[/_]+", "-", result.stdout)
branch_name = re.sub("[/_]+", "-", result.stdout) or "HEADLESS"
return f"{release_string}-{branch_name}.{num_commits}"
message = f"Unrecognized release value in tag: {result.stdout}"
raise ValueError(message)
Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def main() -> None:
case "docker":
if args.debug:
container_cmd.extend(["-D", "-l", "debug"])
build_cmd = container_cmd + ["buildx", "build"]
build_cmd = container_cmd + ["buildx", "build", "--load"]
push_cmd = container_cmd + ["push"]
case _:
logging.critical(f"Container CLI '{container_cmd[0]}' is not supported.")
Expand Down

0 comments on commit f17b822

Please sign in to comment.