using debianmaster/hugo-base base image
oc new-project hugo-test
oc adm policy add-scc-to-user anyuid -z builder
oc adm policy add-scc-to-user anyuid -z default
Convert hugo website to docker image and deploy
oc new-app debianmaster/hugo-base~https://github.com/debianmaster/hugo-example-site --name=gohugo
oc create configmap hugo-config --from-file=config.toml
oc volume dc gohugo --add -m '/tmp/config' -t configmap --configmap-name 'hugo-config'
Build your own base image
oc new-build https://github.com/debianmaster/hugo-on-openshift.git --strategy=docker --context-dir=hug-s2i --name=hugo-base