Commit a2b0824
Clean up docker/build.sh
- Move usage check to the top, to serve as documentation for people
who read the script.
- Remove `-x` from shebang line (#!), to only enable tracing in CI.
- Fix `set -x` call (previously it was inside the `if` condition,
which is wrong).
- Remove PS4 variable (which adds info to the trace) because sh does
not support LINENO, and the rest of the info is not that useful.
- Inline `trace_off` into section_start and section_end to produce
less noise in the trace. (The "section_start" lines will still be
displayed though. Hiding them is tricky; see
DOMjudge/domjudge/gitlab/integration.sh for an example, but note
that it requires bash for `shopt -s expand_aliases`.)
- Make the no-op placeholders for section_start and section_end
produce less noise in the trace.
- Redirect stderr to stdout as a workaround for a GitHub Actions
issue that causes them to appear out-of-order.
- Simplify initialisation of NAMESPACE variable to make the trace
look nicer.
- Put the variable assignments in a log group to make it look nicer.
- Fix the invocation of build.sh in the build-domjudge-container-*
workflows to use `./build.sh` rather than `sh ./build.sh` so that
the options in the shebang line will be respected. Also remove
unnecessary calls to `set -x` in the workflows.1 parent d1da7b7 commit a2b0824
File tree
3 files changed
+32
-49
lines changed- .github/workflows
- docker
3 files changed
+32
-49
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
| 68 | + | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
| 68 | + | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
12 | | - | |
13 | 19 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | | - | |
25 | | - | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
40 | 39 | | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 43 | + | |
51 | 44 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 45 | + | |
58 | 46 | | |
59 | 47 | | |
| 48 | + | |
60 | 49 | | |
61 | 50 | | |
62 | 51 | | |
63 | | - | |
64 | 52 | | |
65 | 53 | | |
66 | 54 | | |
67 | 55 | | |
68 | 56 | | |
69 | | - | |
70 | 57 | | |
71 | 58 | | |
72 | 59 | | |
| |||
0 commit comments