My website is built and deployed on a (private) Gitlab server. Until now, I did not need Hugo module, only git submodule and everything were fine.
Since couple of weeks, I need to use Hugo module and since them, the Gitlab CI is broken. I get the same error as is I use Hugo from snap on my (linux) computer:
Error: we found a go.mod file in your project, but you need to install Go to use it. See https://golang.org/dl/.: module "github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic" not found; either add it as a Hugo Module or store it in "/builds/project-0/themes".: module does not exist
Locally, I “fix” this by directly downloading the Hugo binary (instead of Snap). But on my Gitlab-CI, I do not know what to do. I try different Docker images but did not find a “good” one. Does anyone have an idea?
Here is my .gitlab-ci (note: I need both hugo module and git submodule). I used the
monachus/hugo:latest but it (now) seems to fail.
variables: GIT_SUBMODULE_STRATEGY: recursive GIT_SSL_NO_VERIFY: "true" pages: image: monachus/hugo:latest before_script: - apt-get update -y -qq - apt-get install git -y -qq - git submodule update --init --recursive script: - hugo artifacts: paths: - public only: - master
And these are the docker image I tried (maybe I did something wrong!)
Thanks in advance!