From 368b3b8c25f2da40088da5a97e891d4ddc9144b7 Mon Sep 17 00:00:00 2001 From: pablorcruh Date: Tue, 5 Dec 2017 20:11:36 -0500 Subject: [PATCH] circle ci config --- .circleci/config.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2440b829..c22c9299 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,3 +17,10 @@ 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_USER_ID -p $DOCKER_HUB_PWD + docker tag dockerapp_dockerapp $DOCKER_HUB_USER_ID/dockerapp:$CIRCLE_SHA1 + docker tag dockerapp_dokcerapp $DOCKER_HUB_USER_ID/dockerapp:latest + docker login $DOCKER_HUB_USER_ID/dockerapp:$CIRCLE_SHA1 \ No newline at end of file