Docker image of the latest version of Hugo, always!
1.6K
Docker image of the latest version of Hugo, always!
# pull image
$ docker pull flemay/hugo
# run image
$ docker run --rm flemay/hugo hugo version
This image is used when building and deploying the website from the repository flemay/fredericlemay-com.
# 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
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.
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.
Contributions are greatly appreciated. Everyone can contribute and here are different ways.
Content type
Image
Digest
sha256:c5046a33b…
Size
51.9 MB
Last updated
about 4 years ago
docker pull flemay/hugo