From 221e474c5ac0684390eea628d9371351b6c1bebc Mon Sep 17 00:00:00 2001 From: Naoki Kosaka Date: Thu, 15 Nov 2018 17:25:56 +0900 Subject: [PATCH] Docker deploy in CircleCI. --- .circleci/config.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index d9ba6f8..6eef266 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,9 +13,25 @@ jobs: dep ensure go test -coverprofile=coverage.txt . ./worker ./cli bash <(curl -s https://codecov.io/bash) + docker: + docker: + - image: docker:git + steps: + - checkout + - setup_remote_docker + - run: + name: build docker image + command: | + docker build -t ${DOCKER_USER}/activity-relay:latest . + - run: + name: upload image to docker hub. + command: | + docker login --username=${DOCKER_USER} --password=${DOCKER_PASS} + docker push ${DOCKER_USER}/activity-relay:latest workflows: version: 2 build: jobs: - test + - docker