docs: Clarify the documentation #209
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests-cluster-chainsaw | |
on: | |
pull_request: | |
branches-ignore: | |
- 'gh-pages' | |
jobs: | |
test-cluster-chainsaw: | |
runs-on: depot-ubuntu-latest-8 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 | |
- name: Install Cosign | |
uses: sigstore/cosign-installer@4959ce089c160fddf62f7b42464195ba1a56d382 # v3.6.0 | |
# Added by ParadeDB: Authenticate to Docker Hub to avoid rate limits | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} | |
# Added by ParadeDB: Always pull the latest version of paradedb/paradedb | |
- name: Set ParadeDB Version to Latest | |
working-directory: charts/paradedb/ | |
env: | |
GH_TOKEN: ${{ secrets.GHA_CREATE_RELEASE_PAT }} | |
run: | | |
LATEST_TAG=$(curl -s https://api.github.com/repos/paradedb/paradedb/tags | jq -r '.[0].name') | |
APP_VERSION=${LATEST_TAG#v} | |
sed -i "s/^[[:space:]]*paradedb: .*/ paradedb: \"$APP_VERSION\"/" values.yaml | |
sed -i "s/^version: .*/version: ${{ vars.CHART_VERSION_MAJOR }}.${{ vars.CHART_VERSION_MINOR }}.${{ vars.CHART_VERSION_PATCH }}/" Chart.yaml | |
echo "values.yaml:" | |
cat values.yaml | |
echo "----------------------------------------" | |
echo "Chart.yaml:" | |
cat Chart.yaml | |
- name: Setup kind | |
uses: ./.github/actions/setup-kind | |
- name: Deploy the operator | |
uses: ./.github/actions/deploy-operator | |
- name: Install Prometheus CRDs | |
run: | | |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | |
helm install prometheus-crds prometheus-community/prometheus-operator-crds | |
- name: Install Chainsaw | |
uses: kyverno/action-install-chainsaw@d311eacde764f806c9658574ff64c9c3b21f8397 # v0.2.11 | |
with: | |
verify: true | |
- name: Setup MinIO | |
run: | | |
helm repo add minio-operator https://operator.min.io | |
helm upgrade \ | |
--install \ | |
--namespace minio-system \ | |
--create-namespace \ | |
--wait \ | |
operator minio-operator/operator | |
helm upgrade \ | |
--install \ | |
--namespace minio \ | |
--create-namespace \ | |
--wait \ | |
--values ./.github/minio.yaml \ | |
tenant minio-operator/tenant | |
- name: Run Kyverno/Chainsaw | |
run: chainsaw test |