Sign inSign up

flemay/hugo

By flemay

•Updated about 4 years ago

Docker image of the latest version of Hugo, always!

Image
0

1.6K

flemay/hugo repository overview

⁠Docker - Hugo

GitHub Repository Push Status DockerHub Repository Docker Hub Pulls Badge License

Docker image of the latest version of Hugo⁠, always!

⁠What's inside the image

  • Based on the latest Alpine image⁠
  • Latest regular version of Hugo
    • Not the Extended version as I don't need support for SASS/SCSS
  • NodeJS⁠ with npm, yarn, and postcss-cli/autoprefixer modules used by Hugo PostCSS⁠
  • bash, curl, git

⁠Usage

# pull image
$ docker pull flemay/hugo
# run image
$ docker run --rm flemay/hugo hugo version

⁠Example

This image is used when building and deploying the website from the repository flemay/fredericlemay-com⁠.

⁠Development

# generate .env file
$ make envfile
# build image
$ make build
# test image
$ make test
# go inside the container
$ make shell
# call docker hub build
$ make push
# clean
$ make clean

⁠Versioning

This image will always be built with the tag latest so tools will always be up to date. This may cause issues if any tool has a breaking change.

⁠Automated build process

A change to master triggers a GitHub Action that builds, tests, and pushes the image to Docker Hub. The automatic build on Docker Hub has been disabled ensuring the build process to only go through GitHub Actions. Moreover, to make sure the image is always up to date, a scheduled GitHub Action kicks off every month. Finally, a pull request triggers another GitHub Action which builds and tests the image.

⁠Contributing

Contributions are greatly appreciated. Everyone can contribute and here⁠ are different ways.

⁠License

MIT⁠

Tag summary

Content type

Image

Digest

sha256:c5046a33b…

Size

51.9 MB

Last updated

about 4 years ago

docker pull flemay/hugo