mirror of
https://github.com/emqx/neuron.git
synced 2026-10-21 16:55:53 +08:00
Merge pull request #771 from brianbinbin/workflow/helm
ci: add helm repo and delete test-helm.yaml
This commit is contained in:
@@ -33,10 +33,12 @@ jobs:
|
||||
echo "Need update appVersion for Chart.yaml"
|
||||
exit 1
|
||||
fi
|
||||
- name: Create helm package
|
||||
working-directory: deploy/charts/neuron
|
||||
run: helm package .
|
||||
- name: Update helm repo
|
||||
run: |
|
||||
sudo mv $(find deploy/charts/neuron -name "*.tgz") /repos/charts
|
||||
sudo helm repo index /repos/charts
|
||||
uses: emqx/push-helm-action@v1
|
||||
with:
|
||||
charts_dir: "${{ github.workspace }}/deploy/charts/neuron"
|
||||
version: ${{ github.ref_name }}
|
||||
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws_region: "us-west-2"
|
||||
aws_bucket_name: "repos-emqx-io"
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
name: Test helm
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
deployment:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: minikube start --kubernetes-version="v1.23.0"
|
||||
- uses: actions/checkout@v2
|
||||
- name: Deploy neuron by helm
|
||||
shell: bash
|
||||
run: |
|
||||
helm install neuron deploy/charts/neuron\
|
||||
--set image.repository="emqx/neuron"\
|
||||
--set image.tag="2.0.1"
|
||||
- name: Check deployment
|
||||
timeout-minutes: 5
|
||||
run: |
|
||||
set -euo pipefail
|
||||
while [ "$(kubectl get pods -o json | jq '.items[0].status.containerStatuses[] | select(.ready==true) | .containerID')" = "" ]; do
|
||||
echo "=============================="
|
||||
kubectl get pods
|
||||
echo "=============================="
|
||||
echo "waiting neuron started"
|
||||
sleep 10
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user