mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-08 23:18:05 -05:00
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
name: Release K8 Operator Helm Chart
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test-helm:
|
|
name: Test Helm Chart
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Helm
|
|
uses: azure/setup-helm@v4.2.0
|
|
with:
|
|
version: v3.17.0
|
|
|
|
- uses: actions/setup-python@v5.3.0
|
|
with:
|
|
python-version: "3.x"
|
|
check-latest: true
|
|
|
|
- name: Set up chart-testing
|
|
uses: helm/chart-testing-action@v2.7.0
|
|
|
|
- name: Run chart-testing (lint)
|
|
run: ct lint --config ct.yaml --charts helm-charts/secrets-operator
|
|
|
|
- name: Create kind cluster
|
|
uses: helm/kind-action@v1.12.0
|
|
|
|
- name: Run chart-testing (install)
|
|
run: ct install --config ct.yaml --charts helm-charts/secrets-operator
|
|
|
|
release-helm:
|
|
name: Release Helm Chart
|
|
needs: test-helm
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Helm
|
|
uses: azure/setup-helm@v3
|
|
with:
|
|
version: v3.10.0
|
|
|
|
- name: Install python
|
|
uses: actions/setup-python@v4
|
|
|
|
- name: Install Cloudsmith CLI
|
|
run: pip install --upgrade cloudsmith-cli
|
|
|
|
- name: Build and push helm package to CloudSmith
|
|
run: cd helm-charts && sh upload-k8s-operator-cloudsmith.sh
|
|
env:
|
|
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|