diff options
author | clarkzjw <[email protected]> | 2018-01-11 22:12:58 +0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2018-01-11 22:12:58 +0800 |
commit | d2eb9e5186102f3cb135b9b8a362912ed04f0cee (patch) | |
tree | 02b9c73d7311482340fef871e1e2594300a4eef8 /.circleci | |
parent | a576ef4e42dc9fb22bd84c058d0a5aca27a59e57 (diff) | |
download | blog.jinwei.me-d2eb9e5186102f3cb135b9b8a362912ed04f0cee.tar.gz |
Thu Jan 11 22:12:58 CST 2018
Diffstat (limited to '.circleci')
-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 . | ||