drone-hugo icon indicating copy to clipboard operation
drone-hugo copied to clipboard

Add node to Dockerfile

Open mlthlschr opened this issue 4 years ago • 6 comments

I have already tried it on discourse, see here.

The Dockerfile additionally needs node, as there are some pipes used by hugo which require node, e.g. postcss. Does not work by adding another step to the pipeline, as hugo is needing it specifically.

mlthlschr avatar Dec 04 '20 22:12 mlthlschr

Than it got to be added to all Dockerfiles

tboerger avatar Dec 17 '20 13:12 tboerger

Looks like it is available for all used platforms. https://nodejs.org/de/download/

mlthlschr avatar Dec 22 '20 21:12 mlthlschr

Okay, tried to fiddle a bit on my own. Looks like additionally, before executing hugo, the npm packages need to be installed (e.g. see this). This would require additional changes in the go files in this repo. Maybe I can take a look in the future.

mlthlschr avatar Dec 22 '20 22:12 mlthlschr

Hello, @mlthlschr, maybe it's already possible to connect babel/cli for HUGO?

igramnet avatar Jan 24 '22 11:01 igramnet

Hi @igramnet, I am not using drone anymore. I am using a different CI now with my own dockerfile, based on alpine/latest. I added nodejs, npm, hugo and that's it. Maybe you can try to implement something like that for your drone

mlthlschr avatar Jan 24 '22 16:01 mlthlschr

I saw your question on drone.io and assumed you figured it out. Of course, I wanted to implement something at the drone. @tboerger, can u help me?

igramnet avatar Jan 24 '22 18:01 igramnet