Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Exclude advanced Helm chart validation on release #377

Merged
merged 2 commits into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/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:
Expand Down
Loading