From 0d4d2ac37b21ac69fcecce9a1673e91cd5651442 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Sat, 22 Jun 2019 09:51:37 +0300 Subject: [PATCH] CircleCI: Build and push load tester --- .circleci/config.yml | 1 - test/README.md | 10 ++++------ test/container-build.sh | 1 + test/container-push.sh | 2 ++ 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3b28cb65..140b716c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -53,7 +53,6 @@ jobs: at: /tmp/bin - run: test/container-build.sh - run: test/container-push.sh - - run: make loadtester-push push-binary: docker: diff --git a/test/README.md b/test/README.md index 57bc3950..264625b2 100644 --- a/test/README.md +++ b/test/README.md @@ -11,9 +11,8 @@ The e2e testing infrastructure is powered by CircleCI and [Kubernetes Kind](http * deploy Tiller on the local cluster [e2e-istio.sh](e2e-istio.sh) * install Istio CRDs with Helm [e2e-istio.sh](e2e-istio.sh) * install Istio control plane and Prometheus with Helm [e2e-istio.sh](e2e-istio.sh) -* build Flagger container image [e2e-istio-build.sh](e2e-istio-build.sh) -* load Flagger image onto the local cluster [e2e-istio-build.sh.sh](e2e-istio-build.sh) -* deploy Flagger in the istio-system namespace [e2e-istio-build.sh.sh](e2e-istio-build.sh) +* load Flagger image onto the local cluster [e2e-istio.sh](e2e-istio.sh) +* deploy Flagger in the istio-system namespace [e2e-istio.sh](e2e-istio.sh) * create a test namespace with Istio injection enabled [e2e-tests.sh](e2e-tests.sh) * deploy the load tester in the test namespace [e2e-tests.sh](e2e-tests.sh) * deploy a demo workload (podinfo) in the test namespace [e2e-tests.sh](e2e-tests.sh) @@ -29,9 +28,8 @@ The e2e testing infrastructure is powered by CircleCI and [Kubernetes Kind](http * install latest stable Helm CLI [e2e-nginx.sh](e2e-istio.sh) * deploy Tiller on the local cluster [e2e-nginx.sh](e2e-istio.sh) * install NGINX ingress with Helm [e2e-nginx.sh](e2e-istio.sh) -* build Flagger container image [e2e-nginx-build.sh](e2e-build.sh) -* load Flagger image onto the local cluster [e2e-nginx-build.sh](e2e-build.sh) -* install Flagger and Prometheus in the ingress-nginx namespace [e2e-nginx-build.sh](e2e-build.sh) +* load Flagger image onto the local cluster [e2e-nginx.sh](e2e-nginx.sh) +* install Flagger and Prometheus in the ingress-nginx namespace [e2e-nginx.sh](e2e-nginx.sh) * create a test namespace [e2e-nginx-tests.sh](e2e-tests.sh) * deploy the load tester in the test namespace [e2e-nginx-tests.sh](e2e-tests.sh) * deploy the demo workload (podinfo) and ingress in the test namespace [e2e-nginx-tests.sh](e2e-tests.sh) diff --git a/test/container-build.sh b/test/container-build.sh index 205d27e7..4ee2ccc8 100755 --- a/test/container-build.sh +++ b/test/container-build.sh @@ -9,3 +9,4 @@ cp /tmp/bin/flagger ${REPO_ROOT}/bin && chmod +x ${REPO_ROOT}/bin/flagger cp /tmp/bin/loadtester ${REPO_ROOT}/bin && chmod +x ${REPO_ROOT}/bin/loadtester docker build -t test/flagger:latest . -f ${REPO_ROOT}/Dockerfile +docker build -t test/flagger-loadtester:latest . -f ${REPO_ROOT}/Dockerfile.loadtester \ No newline at end of file diff --git a/test/container-push.sh b/test/container-push.sh index 271804f8..0da036d9 100755 --- a/test/container-push.sh +++ b/test/container-push.sh @@ -17,5 +17,7 @@ if [[ -z "$CIRCLE_TAG" ]]; then else echo $DOCKER_PASS | docker login -u=$DOCKER_USER --password-stdin; docker tag test/flagger:latest weaveworks/flagger:${CIRCLE_TAG}; + docker tag test/flagger-loadtester:latest weaveworks/flagger-loadtester:${CIRCLE_TAG}; docker push weaveworks/flagger:${CIRCLE_TAG}; + docker push weaveworks/flagger-loadtester:${CIRCLE_TAG}; fi