From d26d66e3f285980c679d335129537afb4bbf6fc4 Mon Sep 17 00:00:00 2001 From: ppawlowski Date: Mon, 6 May 2024 21:59:11 +0200 Subject: [PATCH] Exclude helm chart linting for release PR --- .github/workflows/helm-chart.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/helm-chart.yml b/.github/workflows/helm-chart.yml index d8a0138b..e475672e 100644 --- a/.github/workflows/helm-chart.yml +++ b/.github/workflows/helm-chart.yml @@ -45,30 +45,18 @@ jobs: ct lint --config ./.github/configs/chart-testing.yaml - name: Create kind cluster + if: "${{!startsWith(github.event.pull_request.title, 'feat: Release')}}" uses: helm/kind-action@v1.8.0 - name: Label cluster nodes + if: "${{!startsWith(github.event.pull_request.title, 'feat: Release')}}" run: | for node in $(kubectl get nodes -o name); do kubectl label --overwrite $node "role=management" done - - name: Wait for forge application public image - run: | - IMAGE="flowfuse/forge-k8s" - TAG=$(helm show chart ./helm/flowforge | awk -F': ' '/appVersion/ {print $2}') - ATTEMPTS=0 - until docker manifest inspect $IMAGE:$TAG || [ $ATTEMPTS -eq 10 ]; do - ATTEMPTS=$((ATTEMPTS+1)) - echo "Attempt $ATTEMPTS failed! Trying again in 30 seconds..." - sleep 30 - done - if [ $ATTEMPTS -eq 10 ]; then - echo "Failed to inspect remote $IMAGE:$TAG after $ATTEMPTS attempts!" - exit 1 - fi - - name: Run chart-testing (install and upgrade) + if: "${{!startsWith(github.event.pull_request.title, 'feat: Release')}}" run: ct install --upgrade --config ./.github/configs/chart-testing.yaml validate: