Commit 28a512b
committed
Refine GitHub Actions Docker workflow
Workflow had outdated dependencies, missing security hardening, and
inefficient multi-platform builds for PRs. Fix:
- Bump docker/build-push-action v5 → v6
- Add concurrency control to prevent overlapping publishes
- Add least-privilege permissions (contents:read, actions:write)
- Conditional platforms: PRs build amd64 only, pushes build both
- Enable GitHub Actions cache (cache-from/cache-to type=gha)1 parent 9fc03a2 commit 28a512b
1 file changed
+20
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
13 | 22 | | |
14 | | - | |
15 | 23 | | |
16 | 24 | | |
| 25 | + | |
17 | 26 | | |
18 | 27 | | |
| 28 | + | |
19 | 29 | | |
20 | 30 | | |
| 31 | + | |
21 | 32 | | |
22 | | - | |
23 | 33 | | |
| 34 | + | |
24 | 35 | | |
25 | 36 | | |
26 | 37 | | |
| 38 | + | |
27 | 39 | | |
28 | | - | |
| 40 | + | |
29 | 41 | | |
30 | 42 | | |
31 | | - | |
| 43 | + | |
32 | 44 | | |
33 | 45 | | |
| 46 | + | |
| 47 | + | |
0 commit comments