From a778e003f2666d19bf69d109587f504d790476ad Mon Sep 17 00:00:00 2001 From: ndrg13 <72130242+ndrg13@users.noreply.github.com> Date: Thu, 5 Nov 2020 21:00:47 +0100 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index d63fadf..23e5ea8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -74,6 +74,23 @@ jobs: - run: name: Run end to end test command: yarn test:e2e + push_to_hub: + executor: buildpack + environment: + IMAGE_NAME: testimg + steps: + - checkout + - setup_remote_docker + - run: + name: Build Docker image + command: docker build -t $IMAGE_NAME:app . + - run: + name: Login to Docker Hub + command: | + echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_LOGIN" --password-stdin + - run: + name: Push to Docker Hub + command: docker push $IMAGE_NAME:app workflows: version: 2 integration: @@ -88,3 +105,7 @@ workflows: - test_end_to_end: requires: - build + - push_to_hub: + requires: + - test + - test_end_to_end