This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new fc7a466  ci: run chaos test on HEAD of PR (#3675)
fc7a466 is described below

commit fc7a4666814fb9de96f7120a347cdd5512b0eed6
Author: Shuyang Wu <[email protected]>
AuthorDate: Wed Mar 3 13:40:33 2021 +0800

    ci: run chaos test on HEAD of PR (#3675)
---
 .github/workflows/chaos.yml  | 4 ++++
 t/chaos/setup_chaos_utils.sh | 1 +
 2 files changed, 5 insertions(+)

diff --git a/.github/workflows/chaos.yml b/.github/workflows/chaos.yml
index 8712a60..e4447b2 100644
--- a/.github/workflows/chaos.yml
+++ b/.github/workflows/chaos.yml
@@ -15,6 +15,10 @@ jobs:
       - name: Creating minikube cluster
         run: |
           bash ./t/chaos/setup_chaos_utils.sh start_minikube
+          wget 
https://raw.githubusercontent.com/apache/apisix-docker/master/alpine-local/Dockerfile
+          mkdir logs
+          docker build -t apache/apisix:alpine-local --build-arg APISIX_PATH=. 
-f Dockerfile .
+          minikube cache add apache/apisix:alpine-local -v 7 --alsologtostderr
 
       - name: Print cluster information
         run: |
diff --git a/t/chaos/setup_chaos_utils.sh b/t/chaos/setup_chaos_utils.sh
index 7a250b8..7584dd4 100755
--- a/t/chaos/setup_chaos_utils.sh
+++ b/t/chaos/setup_chaos_utils.sh
@@ -36,6 +36,7 @@ modify_config() {
 etcd:
   host:
     - \"http://etcd-cluster-client.default.svc.cluster.local:2379\"; " > 
./conf/config.yaml
+    sed -i -e 's/apisix:latest/apisix:alpine-local/g' 
kubernetes/deployment.yaml
 }
 
 ensure_pods_ready() {

Reply via email to