From d2eb9e5186102f3cb135b9b8a362912ed04f0cee Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 11 Jan 2018 22:12:58 +0800 Subject: Thu Jan 11 22:12:58 CST 2018 --- .circleci/config.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .circleci/config.yml (limited to '.circleci') diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..1dc901f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,19 @@ +version: 2 +jobs: + build: + branches: + only: + - master + working_directory: /app + docker: + - image: docker:17.05.0-ce-git + steps: + - checkout + - setup_remote_docker: + reusable: true + + - run: + name: Build Docker image + command: | + TAG="0.1.${CIRCLE_BUILD_NUM}" + docker build --build-arg GIT_TOKEN="${GIT_TOKEN}" -t clarkzjw/blog.jinwei.me:$TAG . -- cgit v1.2.3