Using Hugo module (Go Module) stored in private repo
divyakumarjain opened this issue · 1 comments
divyakumarjain commented
Need to have a way to use private Hugo module (go module). One of the way suggested in below forum is using "insteadOf" in git config url. This allows adding access token in the module Git URL when Hugo is trying to download.
https://discourse.gohugo.io/t/proper-way-to-get-private-repos-hugo-modules/21920/10
One option is to have a new ONBUILD ARG which takes a command which gets executed before "ONBUILD RUN hugo ${HUGO_CMD}".
Thoughts?