fix: add mkdir for MJML compiled output directory #297
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/basketball-api!297
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "293-fix-dockerfile-mkdir"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Follow-up fix for #293 -- the email-compiler Docker stage runs
npx mjml ... -o templates/email/compiled/but thecompiled/directory does not exist. MJML CLI requires the output directory to pre-exist for multi-file input, causing docker build to fail.Changes
Dockerfile: AddedRUN mkdir -p templates/email/compiledbefore thenpx mjmlinvocation in the email-compiler stageTest Plan
docker build --target email-compilersucceeds with the fixdocker buildpasses in CIReview Checklist
Related Notes
None.
Related
Closes #293
QA Review -- PR #297
Scope: One-line Dockerfile fix in the
email-compilerbuild stage.Diff Review
The change adds
RUN mkdir -p templates/email/compiledbefore thenpx mjmlinvocation. This is correct -- MJML CLI does not auto-create output directories when processing glob patterns.Checklist
mkdir -pis idempotent (safe if directory already exists)293-fix-dockerfile-mkdirCloses #293present for auto-closedocker build --target email-compilerverified passing by authorFindings
No issues found. This is a straightforward one-line fix for a missing directory that causes the Docker build to fail.
VERDICT: APPROVED