Repository navigation
Commit 6eebb97
Set HUGO_CACHEDIR and WORKDIR in the builder image
The official Hugo image ships ENV HUGO_CACHEDIR=/cache. deploy.sh reads
${HUGO_CACHEDIR:-/tmp/hugo_cache}, so the default never fires and the cache
lands in the container's writable layer rather than the volume mounted at
/tmp: discarded on every run, and consuming host disk in between. The
floryn90 image it replaces put the cache on /tmp, which is why this did not
bite before.
Set WORKDIR to /src for the same reason — upstream sets /project, which is
not where the Jenkins workspace is mounted. deploy.sh cds to $SRC either way,
but the image should not disagree with the service it runs in.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X1AuLA5tHPwpD7Hp5utPkS1 parent 3548d7c commit 6eebb97
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
30 | 39 | | |
31 | 40 | | |
0 commit comments