Skip to content

JHOFER-Cloud/helm-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HELM CI/CD

Usage

Examples:

Custom values, no chart

# workflow.yml
# For custom values only
on:
  push:
    branches: [main]
  pull_request:
    branches: [main, dev*]

jobs:
  deploy:
    uses: JHOFER-Cloud/helm-ci/.github/workflows/k8s-deploy-template.yml@main
    with:
      app_name: my-app
      custom: true
      values_path: helm/values
      ingress_domain: company.com
    secrets:
      KUBE_CONFIG_DEV: ${{ secrets.KUBE_CONFIG_DEV }}
      KUBE_CONFIG_LIVE: ${{ secrets.KUBE_CONFIG_LIVE }}

# helm/values/common.yml
replicaCount: 1
image:
  repository: my-registry.com/my-app
  tag: latest

service:
  port: 3000

ingress:
  enabled: true
  host: { { .IngressHost } }

Helm chart

# .github/workflows/deploy.yml
jobs:
  deploy-nginx:
    uses: JHOFER-Cloud/helm-ci/.github/workflows/k8s-deploy-template.yml@main
    with:
      app_name: my-nginx
      helm_repository: https://charts.bitnami.com/bitnami
      helm_chart: nginx
      helm_version: 13.2.24
      values_path: helm/values
      ingress_domain: company.com
    secrets:
      KUBE_CONFIG_DEV: ${{ secrets.KUBE_CONFIG_DEV }}
      KUBE_CONFIG_LIVE: ${{ secrets.KUBE_CONFIG_LIVE }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published