[core] Add Options to set Headers to VirtualService (#603) #323
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: Helm | |
on: | |
push: | |
paths: | |
- '.github/workflows/helm.yaml' | |
- 'deploy/helm/**' | |
jobs: | |
helm: | |
name: Helm Chart | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Lint | |
run: | | |
helm lint deploy/helm/kobs | |
- name: Template | |
run: | | |
helm template -n kobs kobs deploy/helm/kobs | |
- name: Install | |
run: | | |
kind create cluster | |
sleep 60s | |
kubectl create namespace kobs | |
sleep 10s | |
helm install -n kobs kobs deploy/helm/kobs | |
- name: Configure SSH | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: webfactory/ssh-agent@v0.8.0 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Configure Git | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: | | |
git config --global user.email "admin@kobs.io" && git config --global user.name "kobsio" | |
- name: Package Helm Chart | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: | | |
helm package ./deploy/helm/kobs | |
- name: Clone Helm Repository | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: | | |
git clone git@github.com:kobsio/helm-repository.git | |
- name: Update Helm Repository | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: | | |
mv kobs* ./helm-repository/ && helm repo index helm-repository/ --url https://helm.kobs.io/ | |
- name: Commit Changes | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: | | |
cd helm-repository/ && git add . && git commit -m "Add new release for kobs" | |
- name: Push Changes | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: | | |
cd helm-repository/ && git push |