From c0fe461a9f9f692730f8778ee4d514f4b02a046d Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Fri, 21 Jun 2019 13:33:26 +0300 Subject: [PATCH] CircleCI - push to Docker Hub --- .circleci/config.yml | 6 +++--- test/{container-build.sh => container-push.sh} | 5 ----- 2 files changed, 3 insertions(+), 8 deletions(-) rename test/{container-build.sh => container-push.sh} (85%) diff --git a/.circleci/config.yml b/.circleci/config.yml index 786a9d00..aed7fbd7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -36,9 +36,9 @@ jobs: - attach_workspace: at: /tmp/bin - run: | - cp /tmp/bin/flagger . - chmod +x flagger - - run: test/container-build.sh + cp /tmp/bin/flagger . && chmod +x flagger + docker build -t weaveworks/flagger:latest . -f ./test/Dockerfile.ci + - run: test/container-push.sh e2e-istio-testing: machine: true diff --git a/test/container-build.sh b/test/container-push.sh similarity index 85% rename from test/container-build.sh rename to test/container-push.sh index 2b129f05..e26ee932 100755 --- a/test/container-build.sh +++ b/test/container-push.sh @@ -2,11 +2,6 @@ set -o errexit -cp /tmp/workspace/flagger . -chmod +x flagger - -docker build -t weaveworks/flagger:latest . -f ./test/Dockerfile.ci - BRANCH_COMMIT=${CIRCLE_BRANCH}-$(echo ${CIRCLE_SHA1} | head -c7) if [[ -z "$DOCKER_PASS" ]]; then