Example docker-compose service config to automatically build a static site using Gitea and Webhook. Accompaniment to the 'It seems I can contain myself' article on barilaro.me.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
206 B

docker run --rm --entrypoint "" -v DOCKER_COMPOSE_DIR_site_build:/output -e HUGO_DESTINATION=/output klakegg/hugo:ext-alpine bash -c 'rm -rf /output/*; git clone "GITEA SITE REPO URL" /src/; hugo'