forked from actions/clevermicro
fix: add debug info, fix wrong namespace when applying service.yaml
This commit is contained in:
+11
-1
@@ -45,33 +45,43 @@ runs:
|
||||
- name: Add Helm chart repositories
|
||||
shell: bash
|
||||
run: |
|
||||
echo "==================== Adding helm chart repositories ===================="
|
||||
helm repo add kedacore https://kedacore.github.io/charts
|
||||
helm repo add cleverthis "https://${{ inputs.registry-url }}/api/packages/infra/helm" \
|
||||
--username "${{ inputs.registry-user }}" \
|
||||
--password "${{ inputs.registry-password }}"
|
||||
helm repo update
|
||||
echo "==================== Done adding helm chart repositories ===================="
|
||||
|
||||
- name: Install KEDA and wait for ready
|
||||
shell: bash
|
||||
run: |
|
||||
echo "==================== Installing KEDA ===================="
|
||||
helm install keda kedacore/keda --namespace keda --create-namespace --wait --timeout 10m
|
||||
echo "==================== Done installing KEDA ===================="
|
||||
|
||||
- name: Install CleverMicro and wait for ready
|
||||
shell: bash
|
||||
run: |
|
||||
echo "==================== Installing CleverMicro ===================="
|
||||
helm install clevermicro cleverthis/clevermicro-deployment --namespace clevermicro --create-namespace \
|
||||
--set "clevermicro.amqp-router.image.tag=${{ inputs.amqp-router-tag }}" \
|
||||
--set "clevermicro.management-service.image.tag=${{ inputs.management-service-tag }}" \
|
||||
--set "client-lib-demo.image.tag=${{ inputs.client-lib-demo-tag }}" \
|
||||
--wait --timeout 20m
|
||||
echo "==================== Done installing CleverMicro ===================="
|
||||
|
||||
- name: Create additional resources for CleverMicro testing
|
||||
shell: bash
|
||||
run: |
|
||||
kubectl apply -f ${{ forge.action_path }}/service.yaml
|
||||
echo "==================== Applying service file ===================="
|
||||
kubectl -n clevermicro apply -f ${{ forge.action_path }}/service.yaml
|
||||
echo "==================== Done applying service file ===================="
|
||||
|
||||
- name: Wait for all pods ready
|
||||
shell: bash
|
||||
run: |
|
||||
echo "==================== Waiting for all pods ready ===================="
|
||||
kubectl -n clevermicro wait pod --for=condition=Ready --timeout=10m --all
|
||||
kubectl -n clevermicro get pod
|
||||
echo "==================== All pods ready ===================="
|
||||
|
||||
Reference in New Issue
Block a user