From 6fb8f1e9b6cb77ca165d19f51c6d0662cd9a1faf Mon Sep 17 00:00:00 2001 From: Stas Dulman Date: Mon, 20 Jul 2020 16:15:27 +0300 Subject: [PATCH 1/4] update --- .circleci/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2440b829..748a49b7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,3 +17,11 @@ jobs: command: | docker-compose up -d docker-compose run dockerapp python test.py + - deploy: + name: Push application Docker image + command: | + docker login -e $DOCKER_HUB_EMAIL -u $DOCKER_HUB_ID -p $DOCKER_HUB_PWD + docker tag dockerapp_dockerapp $DOCKER_HUB_ID/dockerapp:$CIRCLE_SHA1 + docker tag dockerapp_dockerapp $DOCKER_HUB_ID/dockerapp:latest + docker tag push $DOCKER_HUB_ID/dockerapp:$CIRCLE_SHA1 + docker tag push $DOCKER_HUB_ID/dockerapp:latest From 4155d8f22d361cc875b75f009c681ab6f37b0f29 Mon Sep 17 00:00:00 2001 From: Stas Dulman Date: Mon, 20 Jul 2020 16:17:39 +0300 Subject: [PATCH 2/4] update --- .circleci/config.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 748a49b7..0c616f80 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,10 +18,10 @@ jobs: docker-compose up -d docker-compose run dockerapp python test.py - deploy: - name: Push application Docker image - command: | - docker login -e $DOCKER_HUB_EMAIL -u $DOCKER_HUB_ID -p $DOCKER_HUB_PWD - docker tag dockerapp_dockerapp $DOCKER_HUB_ID/dockerapp:$CIRCLE_SHA1 - docker tag dockerapp_dockerapp $DOCKER_HUB_ID/dockerapp:latest - docker tag push $DOCKER_HUB_ID/dockerapp:$CIRCLE_SHA1 - docker tag push $DOCKER_HUB_ID/dockerapp:latest + name: Push application Docker image + command: | + docker login -e $DOCKER_HUB_EMAIL -u $DOCKER_HUB_ID -p $DOCKER_HUB_PWD + docker tag dockerapp_dockerapp $DOCKER_HUB_ID/dockerapp:$CIRCLE_SHA1 + docker tag dockerapp_dockerapp $DOCKER_HUB_ID/dockerapp:latest + docker tag push $DOCKER_HUB_ID/dockerapp:$CIRCLE_SHA1 + docker tag push $DOCKER_HUB_ID/dockerapp:latest From 03d640aaa9ffebf961489c9fdac33bde7e33cdc3 Mon Sep 17 00:00:00 2001 From: Stas Dulman Date: Mon, 20 Jul 2020 16:20:37 +0300 Subject: [PATCH 3/4] update again; --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0c616f80..d516083b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,5 +23,5 @@ jobs: docker login -e $DOCKER_HUB_EMAIL -u $DOCKER_HUB_ID -p $DOCKER_HUB_PWD docker tag dockerapp_dockerapp $DOCKER_HUB_ID/dockerapp:$CIRCLE_SHA1 docker tag dockerapp_dockerapp $DOCKER_HUB_ID/dockerapp:latest - docker tag push $DOCKER_HUB_ID/dockerapp:$CIRCLE_SHA1 - docker tag push $DOCKER_HUB_ID/dockerapp:latest + docker push $DOCKER_HUB_ID/dockerapp:$CIRCLE_SHA1 + docker push $DOCKER_HUB_ID/dockerapp:latest From 434804b2bc42312f5ac0088fa9dac1f232b28ef9 Mon Sep 17 00:00:00 2001 From: Stas Dulman Date: Mon, 20 Jul 2020 16:23:34 +0300 Subject: [PATCH 4/4] update --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d516083b..b6a011bc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,7 +20,7 @@ jobs: - deploy: name: Push application Docker image command: | - docker login -e $DOCKER_HUB_EMAIL -u $DOCKER_HUB_ID -p $DOCKER_HUB_PWD + docker login -u $DOCKER_HUB_ID -p $DOCKER_HUB_PWD docker tag dockerapp_dockerapp $DOCKER_HUB_ID/dockerapp:$CIRCLE_SHA1 docker tag dockerapp_dockerapp $DOCKER_HUB_ID/dockerapp:latest docker push $DOCKER_HUB_ID/dockerapp:$CIRCLE_SHA1