Skip to content

Downgrade min kots version #1851

Downgrade min kots version

Downgrade min kots version #1851

Workflow file for this run

name: Lint codebase
on: [pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Checkout Code
uses: actions/checkout@v2
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FILTER_REGEX_EXCLUDE: ".*doc/.*|.*github/.*"
check-helm-resources-changed:
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
# Full git history is needed to get the diff with the main branch
fetch-depth: 0
- name: Get Helm Chart resources diff
id: check-helm-resources-diff
continue-on-error: true
run: |
export DIFF=$(git diff --unified=0 origin/main origin/${GITHUB_HEAD_REF} chart/values.yaml | grep -E "[0-9]+Mi|[0-9]+m")
if [ -n "$DIFF" ]; then
echo "resources-changed=true" >> $GITHUB_OUTPUT
else
echo "resources-changed=false" >> $GITHUB_OUTPUT
fi
- name: Comment on PR if Helm Chart resources changed
uses: peter-evans/create-or-update-comment@v2
if: steps.check-helm-resources-diff.outputs.resources-changed == 'true'
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body: |
:warning: Helm Chart resources have changed. Please make sure to update the documentation accordingly. You can find more information [here](https://cartodb.getoutline.com/doc/helm-chart-yJ3vxi6icN#h-deployment-resources).
helm-readme-generator:
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Generate container 'helm-readme-generator'
run: |
git clone https://github.com/bitnami-labs/readme-generator-for-helm
docker build \
-t helm-readme-generator \
readme-generator-for-helm/
- name: Check README values synced
run: |
set -ex
cd chart/
cp README.md README_old.md
docker run --rm \
-v "${PWD}":/my_helm \
-w /my_helm \
helm-readme-generator \
readme-generator \
--readme README.md \
--values values.yaml
if ! cmp README.md README_old.md >/dev/null 2>&1
then
echo "Files aren't equal"
diff README_old.md README.md
exit 1
else
echo "Files look equal!"
fi