Skip to content

Commit

Permalink
ci: Exclude advanced Helm chart validation on release (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb authored May 7, 2024
2 parents a6e29c2 + 03d65a4 commit d3f44ba
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- 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:
Expand Down

0 comments on commit d3f44ba

Please sign in to comment.