Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
Add CI alternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Oct 19, 2019
1 parent 54f980a commit 73fb980
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,36 @@ PASS - flagger/templates/rbac.yaml contains a valid ClusterRole
PASS - flagger/templates/rbac.yaml contains a valid ClusterRoleBinding
PASS - flagger/templates/deployment.yaml contains a valid Deployment
```

## CI alternatives

The validation script can be used in any CI system.

CircleCI example:

```yaml
version: 2.1
jobs:
hrval:
docker:
- image: circleci/golang:1.13
steps:
- checkout
- run:
name: Install hrval deps
command: |
curl -sL https://raw.githubusercontent.com/stefanprodan/hrval-action/master/src/deps.sh | sudo bash
- run:
name: Install hrval
command: |
sudo curl -sL https://raw.githubusercontent.com/stefanprodan/hrval-action/master/src/hrval.sh \
-o /usr/local/bin/hrval && sudo chmod +x /usr/local/bin/hrval
- run:
name: Validate Helm Release
command: |
IGNORE_VALUES=false
KUBE_VER=master
HELM_VER=v2
hrval test/podinfo.yaml $IGNORE_VALUES $KUBE_VER $HELM_VER
```

0 comments on commit 73fb980

Please sign in to comment.