drone-plugins / drone-hugo

Drone plugin to publish Hugo generated websites
https://plugins.drone.io/plugins/hugo
Apache License 2.0
29 stars 20 forks source link

Add node to Dockerfile #28

Open mlthlschr opened 3 years ago

mlthlschr commented 3 years ago

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.

tboerger commented 3 years ago

Than it got to be added to all Dockerfiles

mlthlschr commented 3 years ago

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

mlthlschr commented 3 years ago

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.

igramnet commented 2 years ago

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

mlthlschr commented 2 years ago

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

igramnet commented 2 years ago

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?