Automatically generate helm docs (#8151)

This commit is contained in:
Ricardo Katz 2022-01-16 22:25:28 -03:00 committed by GitHub
parent 1614027cd4
commit 0e5d4ad425
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 8 deletions

View file

@ -137,13 +137,6 @@ jobs:
run: |
./build/run-in-docker.sh ./hack/verify-chart-lint.sh
- name: Run helm-docs
run: |
GOBIN=$PWD GO111MODULE=on go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.6.0
./helm-docs --chart-search-root=${GITHUB_WORKSPACE}/charts
git diff --exit-code
rm -f ./helm-docs
- name: fix permissions
run: |
sudo mkdir -p $HOME/.kube

View file

@ -56,6 +56,26 @@ jobs:
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Set up Go 1.17
id: go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Run helm-docs
run: |
cd ${GITHUB_WORKSPACE}
GOBIN=$PWD GO111MODULE=on go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.6.0
./helm-docs --chart-search-root=${GITHUB_WORKSPACE}/charts
git diff --exit-code ${GITHUB_WORKSPACE}/charts/ingress-nginx/README.md
if [ $? -ne 0 ]; then
git add ${GITHUB_WORKSPACE}/charts/ingress-nginx/README.md
git commit -m "Update helm README"
git push --quiet https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git main > /dev/null 2>&1
fi
rm ./helm-docs
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.1

View file

@ -34,7 +34,7 @@ controller:
# -- Configures the controller container name
containerName: controller
# -- Configures the ports the nginx-controller listens on
# -- Configures the ports that the nginx-controller listens on
containerPort:
http: 80
https: 443