Run update-lastmod script while building container image
Review Request #521 — Created Feb. 19, 2021 and submitted
This will make sure that the creation date and last modified date of each markdown file matches to what the repository history says
Built container image and verified the added script was indeed getting triggered.
Verified that the script was actually modified the markdown files with the correct creation and last updated date.
- Change Summary:
-
This new revision should work as intended. Like I said in the comment I left before, the issue was that the
update-lastmod.js
script needs to be executed BEFORE hugo builds the site as this script modifies the markdown files in case they have an creationDate or lastModifiedDate that does not match the mercurial logs. However, I'm not too sure I like the implementation. An alternative would be to just install node and mercurial in the same stage where we runhugo
. I'm open to suggestions to improve this. - Commit:
-
451bc7ca316afe476cce1682
- Diff:
-
Revision 2 (+18 -3)