mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 02:27:37 +00:00
misc: add test workflow for gateway helm
This commit is contained in:
@@ -1,27 +1,70 @@
|
|||||||
name: Release Gateway Helm Chart
|
name: Release Gateway Helm Chart
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-helm:
|
test-helm:
|
||||||
name: Release Helm Chart
|
name: Test Helm Chart
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install Helm
|
- name: Set up Helm
|
||||||
uses: azure/setup-helm@v3
|
uses: azure/setup-helm@v4.2.0
|
||||||
with:
|
with:
|
||||||
version: v3.10.0
|
version: v3.17.0
|
||||||
|
|
||||||
- name: Install python
|
- uses: actions/[email protected]
|
||||||
uses: actions/setup-python@v4
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
- name: Install Cloudsmith CLI
|
- name: Set up chart-testing
|
||||||
run: pip install --upgrade cloudsmith-cli
|
uses: helm/[email protected]
|
||||||
|
|
||||||
- name: Build and push helm package to CloudSmith
|
- name: Run chart-testing (lint)
|
||||||
run: cd helm-charts && sh upload-gateway-cloudsmith.sh
|
run: ct lint --config ct.yaml --charts helm-charts/infisical-gateway
|
||||||
env:
|
|
||||||
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|
- name: Create kind cluster
|
||||||
|
uses: helm/[email protected]
|
||||||
|
|
||||||
|
- name: Create namespace
|
||||||
|
run: kubectl create namespace infisical-gateway
|
||||||
|
|
||||||
|
- name: Create gateway secret
|
||||||
|
run: kubectl create secret generic infisical-gateway-environment --from-literal=TOKEN=my-test-token -n infisical-gateway
|
||||||
|
|
||||||
|
- name: Run chart-testing (install)
|
||||||
|
run: |
|
||||||
|
ct install \
|
||||||
|
--config ct.yaml \
|
||||||
|
--charts helm-charts/infisical-gateway \
|
||||||
|
--helm-extra-args="--timeout=300s" \
|
||||||
|
--namespace infisical-gateway
|
||||||
|
|
||||||
|
release-helm:
|
||||||
|
name: Release Helm Chart
|
||||||
|
needs: test-helm
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- 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-gateway-cloudsmith.sh
|
||||||
|
env:
|
||||||
|
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|
||||||
|
|||||||
Reference in New Issue
Block a user