Commit 879eb73
committed
fix: build the runtime stage, not whatever comes last
The php-fpm build carried no `target:`, which means Docker builds the
last stage in the Dockerfile. Adding the web stage after runtime
therefore turned that build into the nginx one, and
phpmyadmin-php-fpm:latest was published as nginx. The smoke test on main
caught it - app-assets died on `exec: "/bin/bash": no such file`.
It could not be caught earlier: the smoke test is a separate job and the
pull-request build never leaves its runner, so the job only runs on main,
which is after publishing.
So the identity of each image is now asserted in the job that builds it,
where a missing target actually goes wrong. Both conditions were checked
against both images locally: each accepts its own and rejects the other,
so they would have failed this change before it merged.
Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>1 parent 62923f0 commit 879eb73
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| |||
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
120 | 140 | | |
121 | 141 | | |
122 | 142 | | |
| |||
166 | 186 | | |
167 | 187 | | |
168 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
169 | 199 | | |
170 | 200 | | |
171 | 201 | | |
| |||
0 commit comments