Image Version |
---|
klakegg/hugo:0.107.0-ext-ubuntu-onbuild |
docker pull klakegg/hugo:0.107.0-ext-ubuntu-onbuild
From wherever you checkout repos(or your fork):
git clone https://github.com/MyDevOpsTeam-io/workshop-gh-src.git
git submodule add https://github.com/matcornic/hugo-theme-learn themes/hugo-theme-learn
echo "theme = 'hugo-theme-learn'" >> config.toml
docker run --rm -it \
-v $(pwd):/src \
-p 1313:1313 \
klakegg/hugo:0.107.0-ext-ubuntu-onbuild \
server --watch --disableFastRender
Visit 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.sh
sudo pip3 install pre-commit
pre-commit install
Please check read our code-of-conduct