This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
make all platforms optional by default #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Helm Installation Test | |
on: | |
push: | |
branches: | |
- '**' | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
type: boolean | |
description: 'Run the build with tmate debugging enabled' | |
required: false | |
default: false | |
jobs: | |
helm-installation-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Helm | |
uses: azure/setup-helm@v1 | |
with: | |
version: v3.7.1 | |
- name: Create Kind Cluster | |
uses: helm/[email protected] | |
with: | |
version: v0.21.0 | |
wait: 90s | |
cluster_name: helm-test-cluster | |
- name: Build COSI Driver Docker Image | |
run: | | |
docker build -t ghcr.io/scality/cosi:latest . | |
- name: Load Docker Image into Kind Cluster | |
run: | | |
kind load docker-image ghcr.io/scality/cosi:latest --name helm-test-cluster | |
- name: Install Scality COSI Helm Chart | |
run: | | |
helm install scality-cosi-driver ./helm/scality-cosi-driver \ | |
--namespace scality-object-storage \ | |
--create-namespace \ | |
--set image.tag=latest | |
- name: Verify Helm Installation | |
run: | | |
kubectl get all -n scality-object-storage | |
- name: Verify Helm Installation | |
run: | | |
chmod +x .github/scripts/verify_helm_install.sh | |
.github/scripts/verify_helm_install.sh | |
- name: Cleanup Helm Release and Namespace | |
run: | | |
helm uninstall scality-cosi-driver -n scality-object-storage | |
kubectl delete namespace scality-object-storage | |
if: always() |