From 94f3ca4558a344cd3207aad39b7fb33d8b198f93 Mon Sep 17 00:00:00 2001 From: Lennart Dohmann Date: Tue, 22 Oct 2024 11:53:36 +0200 Subject: [PATCH] WIP add minikube testing --- .github/workflows/ci.yaml | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d92a3f6..d1947a7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,6 +52,50 @@ jobs: - name: Run chart-testing (lint) run: ct lint --validate-maintainers=false --charts charts/vaas + - name: Install Minikube + uses: manusa/actions-setup-minikube@v2.13.0 + with: + minikube version: 'latest' + kubernetes version: 'latest' + start args: --addons ingress + + - name: Set up kubectl + uses: azure/setup-kubectl@v3 + with: + version: 'latest' + + - name: Install Helm + uses: azure/setup-helm@v4 + with: + version: v3.13.3 + + - name: Deploy Helm Chart + run: | + cat < values-local.yaml + global: + imagePullSecrets: + - registry + secret: + dockerconfigjson: "${{ secrets.DOCKER_CONFIG_JSON }}" + + cloud: + hashLookup: + enabled: false + allowlistLookup: + enabled: false + EOF + helm.sh values-local.yaml + + - name: Verify Pods + run: | + kubectl get pods + kubectl wait --for=condition=ready pod -n vaas --timeout=300s --all + + - name: Verify Services + run: | + kubectl get svc + kubectl wait --for=condition=ready svc -n vaas --timeout=300s --all + - name: Push chart if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' uses: appany/helm-oci-chart-releaser@v0.4.2