Skip to content

Commit 3029096

Browse files
committed
fix
1 parent 1d06398 commit 3029096

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

tools/core/image.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _run_command(self, cmd):
142142
if on_travis:
143143
self._run_command_on_travis(cmd)
144144
return
145-
print("$ %s" % cmd)
145+
print("\033[1m$ %s\033[0m" % cmd, flush=True)
146146
exit_code = os.system(cmd)
147147
if exit_code != 0:
148148
raise RuntimeError("Failed to build (exit_code=%s)" % exit_code)
@@ -186,8 +186,14 @@ def _buildx_build(self, args: List[str], build_dir: str, build_tag: str, platfor
186186
self._run_command(cmd)
187187

188188
def build(self, platform: Platform, no_cache: bool) -> None:
189-
self._logger.info("Build %s:%s (%s)", self.name, self.tag, platform.tag_suffix)
190-
print("Build %s:%s (%s)" % (self.name, self.tag, platform.tag_suffix))
189+
self._logger.info("Building %s:%s (%s)", self.name, self.tag, platform.tag_suffix)
190+
191+
print()
192+
print("=" * 80)
193+
print("Building %s:%s (%s)" % (self.name, self.tag, platform.tag_suffix))
194+
print("=" * 80)
195+
196+
sys.stdout.flush()
191197

192198
source_manager = self.prepare()
193199

tools/push

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
#!/bin/bash
22

3-
set -m
43
set -euo pipefail
5-
set -x
6-
7-
function print_running() {
8-
while true; do
9-
echo ">>> RUNNING <<<"
10-
sleep 3
11-
done
12-
}
13-
14-
if [[ $(uname -m) == "aarch64" ]]; then
15-
print_running &
16-
fi
174

185
cd "$(dirname "$0")" || exit 1
196
python3 helper.py push "$@"

0 commit comments

Comments
 (0)