Skip to content

Update Dependencies #310

Update Dependencies

Update Dependencies #310

Workflow file for this run

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