Auto-trigger docker build for kubernetes helm-docs when new release is announced.
The latest docker tag is the latest release version (https://github.com/helm-docs/helm-docs/releases/latest)
Please avoid to use latest
tag for any production deployment. Tag with right version is the proper way, such as renaultdigital/helm-docs:3.1.1
https://github.com/renault-digital/helm-docs
https://travis-ci.org/renault-digital/helm-docs
https://hub.docker.com/r/renaultdigital/helm-docs/tags/
# mount current folders in container and generate README.md based on README.tmpl.md
docker run --rm -v $PWD:/build -w /build renaultdigital/helm-docs
# Mount current folder in container and check if the generated doc is different from the REAME.md
docker run --rm -v $PWD:/build -w /build renaultdigital/helm-docs -d | diff README.md -
Mostly it is used during CI/CD (continuous integration and continuous delivery) or as part of an automated build/deployment
- Enable Travis CI cronjob on this repo to run build daily on master branch
- Check if there are new tags/releases announced via Github REST API
- Match the exist docker image tags via Hub.docker.io REST API
- If not matched, build the image with release version and push to https://hub.docker.com/
- Get the latest version from https://github.com/norwoodj/helm-docs/releases/latest, pull the image with that version, tag as
renaultdigital/helm-docs:latest
and push to hub.docker.com
Before any contribution, test your code :
- using our testing script:
.githooks/pre-commit
- by registering our githooks:
git config --local core.hooksPath .githooks/
- Borrowed from docker-helm.
- Original works from https://github.com/alpine-docker/helm-docs.