I’m trying to use GitHub - drone-plugins/drone-hugo: Drone plugin to publish Hugo generated websites plugin to publish a Hugo based website. It’s a bit dated and my attempt to get the plugin to update and docker issues made me put that on hold for now. I was trying to find a work around so this is my attempt for now.
kind: pipeline name: documentation steps: - name: Submodule sync image: alpine/git commands: - "git submodule update --init" - name: build image: plugins/hugo:latest settings: extended: true commands: - cd website - "hugo version" - "apk add --update nghttp2-dev nodejs nodejs-npm npm wget" - npm install - npm install postcss-cli - wget "https://github.com/gohugoio/hugo/releases/download/v0.91.0/hugo_extended_0.91.0_Linux-64bit.tar.gz" - tar xvfz hugo_extended_0.91.0_Linux-64bit.tar.gz hugo - "./hugo --destination public --baseURL https://safaci2000.github.io/opennsa/" - name: publish image: plugins/gh-pages settings: pages_directory: public upstream_name: origin remote_url: https://github.com/safaci2000/opennsa.git target_branch: gh-pages force_push: true delete: true username: from_secret: gh_username password: from_secret: gh_password when: branch: master event: push trigger: branch: - master event: - tag - push
I need npm and other crud for docsy. When I run this locally using:
Everything works fine (except I don’t have permission to push so it breaks at that point )
When I try to run it in the cloud version I keep getting this issue:
Error: Error building site: TOCSS: failed to transform "scss/main.scss" (text/x-scss): SCSS processing failed: file "stdin", line 6, col 1: File to import not found or unreadable: ../vendor/bootstrap/scss/bootstrap.
usually that error is due to the fact that hugo-extended isn’t being used. Any ideas what could be going on here? Any reason why local invoke works fine but cloud doesn’t?
Build log is here