RK-19823 - add new DOP params #220
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: validate-ci | |
on: | |
pull_request: | |
types: [labeled, unlabeled, opened, reopened, edited, ready_for_review, synchronize] | |
push: | |
branches-ignore: | |
- master | |
- '*' | |
jobs: | |
build-job: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Check for valid label ✅️ | |
if: ${{ !contains( github.event.pull_request.labels.*.name, 'controller') && !contains( github.event.pull_request.labels.*.name, 'datastore') && !contains( github.event.pull_request.labels.*.name, 'operator') && !contains( github.event.pull_request.labels.*.name, 'rookout-hybrid-deployment') && !contains( github.event.pull_request.labels.*.name, 'global_change') }} | |
uses: actions/github-script@v3 | |
with: | |
script: | | |
core.error | |
core.setFailed('valid label does not exist, please add one') | |
- name: Helm preinstalls ℹ️ | |
run: | | |
echo '>> Prepare...' | |
sudo mkdir -p /tmp/helm/bin | |
sudo mkdir -p /tmp/helm/publish | |
sudo apt update -y | |
sudo apt install ca-certificates git openssh-server -y | |
cd /tmp/helm/bin | |
- name: Install helm 🚀 | |
uses: azure/setup-helm@v1 | |
with: | |
version: '3.10.0' | |
- name: Validate Charts ✅️ | |
run: | | |
helm version -c | |
sudo helm template charts/controller -f charts/controller/values.yaml | |
sudo helm template charts/datastore -f charts/datastore/values.yaml | |
sudo helm template charts/rookout-hybrid -f charts/rookout-hybrid/values.yaml | |
- name: Validate Helm charts and compare with labels ✅️ | |
run: | | |
sudo apt install jq curl -y | |
echo $GITHUB_PAGES_REPO | |
echo $PR_NUMBER | |
echo $GITHUB_BRANCH | |
sudo sh validate.sh $GITHUB_PAGES_REPO $PR_NUMBER $GITHUB_BRANCH | |
env: | |
GITHUB_PAGES_REPO: rookout/helm-charts | |
PR_NUMBER: ${{ github.event.number }} | |
GITHUB_BRANCH: ${{ github.head_ref }} |