Run update-lastmod script while building container image

Review Request #521 — Created Feb. 19, 2021 and submitted

Information

pidgin/nest
default
fe476cce1682

Reviewers

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.


Description From Last Updated

Um.. this doesn't seem to be working for me. See the image I attached, I added the paragraph at the …

grimgrim

Is this related?

QuLogicQuLogic
QuLogic
  1. 
      
  2. package-lock.json (Diff revision 1)
     
     

    Is this related?

    1. It is. Basically the script that updates the lastmod field on each markdown file depends on the front-matter package. On the other hand, the Dockerfile only installs non-dev dependencies so we need to not mark front-matter as a dev only dep.

  3. 
      
rekkanoryo
  1. Ship It!
  2. 
      
QuLogic
  1. Ship It!
  2. 
      
grim
grim
  1. 
      
  2. Um.. this doesn't seem to be working for me. See the image I attached, I added the paragraph at the start of the image earlier today, but as you can see the modified date still says 2020-01-14.

    1. Ah I think I know what's going on... the RUN directive where the node script is getting executed currently is in the dockerfile after the static site gets generated. We'll probably have to add another stage in the dockerfile that uses the node:10-buster-slim base image that runs before the static site is actually generated. I'll get to that in a few hours and update this PR

  3. 
      
sorvival
grim
  1. 
      
  2. Yeah this is a bit convoluted, but should be fine for now.

  3. 
      
grim
  1. Ship It!
  2. 
      
grim
Review request changed

Status: Closed (submitted)

Loading...