diff options
-rw-r--r-- | .circleci/config.yml | 19 |
1 files changed, 19 insertions, 0 deletions
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 @@ | |||
1 | version: 2 | ||
2 | jobs: | ||
3 | build: | ||
4 | branches: | ||
5 | only: | ||
6 | - master | ||
7 | working_directory: /app | ||
8 | docker: | ||
9 | - image: docker:17.05.0-ce-git | ||
10 | steps: | ||
11 | - checkout | ||
12 | - setup_remote_docker: | ||
13 | reusable: true | ||
14 | |||
15 | - run: | ||
16 | name: Build Docker image | ||
17 | command: | | ||
18 | TAG="0.1.${CIRCLE_BUILD_NUM}" | ||
19 | docker build --build-arg GIT_TOKEN="${GIT_TOKEN}" -t clarkzjw/blog.jinwei.me:$TAG . | ||