From bdb862697f8d38844ba8ea103ef00a1cef919493 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Wed, 10 Jan 2018 21:27:16 +0800 Subject: + add token --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index a9d4a49..394380e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,8 +27,9 @@ WORKDIR /html ENV COMMIT_USER="clarkzjw" ENV COMMIT_EMAIL="hello@jinwei.me" +ENV GIT_TOKEN="" -RUN git clone git@github.com:clarkzjw/blog.jinwei.me.git /html && git checkout gh-pages +RUN git clone https://clarkzjw:GIT_TOKEN@github.com/clarkzjw/blog.jinwei.me.git /html && git checkout gh-pages COPY --from=builder /app/_build/html /html -- cgit v1.2.3