Skip to content

fix: add env for secret #37

fix: add env for secret

fix: add env for secret #37

Workflow file for this run

name: PR to Main Branch
on:
pull_request:
types: [opened, synchronize]
branches:
- main
workflow_dispatch:
concurrency:
group: pr-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
helm-lint:
runs-on: ubicloud-standard-2
steps:
- uses: actions/checkout@v3
- name: Lint helm chart
run: |
helm lint cedana-helm
install-test:
runs-on: ubicloud-standard-2
steps:
- uses: actions/checkout@v3
- name: Use Docker
uses: actions-hub/docker/cli@master
env:
SKIP_LOGIN: true
# check if this uses docker image
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
with:
cluster_name: kind
- name: install helm chart
run: |
helm install cedana ./cedana-helm --create-namespace -n cedana-operator-system \
--set cedanaConfig.cedanaAuthToken="${CEDANA_API_KEY}" \
--set cedanaConfig.cedanaUrl="https://sandbox.cedana.ai"
kubectl wait --for=jsonpath='{.status.phase}'=Running --all pod -n cedana-operator-system
env:
CEDANA_API_KEY: ${{ secrets.CEDANA_API_KEY }}