| Image Version |
|---|
| klakegg/hugo:0.107.0-ext-ubuntu-onbuild |
docker pull klakegg/hugo:0.107.0-ext-ubuntu-onbuildFrom wherever you checkout repos(or your fork):
git clone https://github.com/MyDevOpsTeam-io/workshop-gh-src.gitgit submodule add https://github.com/matcornic/hugo-theme-learn themes/hugo-theme-learn
echo "theme = 'hugo-theme-learn'" >> config.tomldocker run --rm -it \
-v $(pwd):/src \
-p 1313:1313 \
klakegg/hugo:0.107.0-ext-ubuntu-onbuild \
server --watch --disableFastRenderVisit http://localhost:1313/ to see the site.
As you save edits to a page, the site will live-reload to show your changes.
docker run --rm -it \
-v $(pwd):/src \
klakegg/hugo:0.107.0-ext-ubuntu-onbuild \
--gc \
--minify \
--baseURL "https://workshops.mydevopsteam.io"or proceed to Local Build
https://github.com/MyDevOpsTeam-io/workshop-gh-src.git
cd workshop-gh-src/tools
chmod +x build-hugo-prod-local.sh
./build-hugo-prod-local.shsudo pip3 install pre-commitpre-commit installPlease check read our code-of-conduct
