aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2018-01-10 21:15:45 +0800
committerclarkzjw <[email protected]>2018-01-10 21:15:45 +0800
commit56dba22d76c8782d8ce3bccb2e4cdffa10c4e4fe (patch)
tree11d08506ba6cb26814cd19fbb71252c20ec978fd /Dockerfile
parentc008c037facaf632dc9923bb2ecd4c9542c14c9d (diff)
downloadblog.jinwei.me-56dba22d76c8782d8ce3bccb2e4cdffa10c4e4fe.tar.gz
+ add git push
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 985f527..a9d4a49 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,6 +17,24 @@ WORKDIR /app
17RUN /bin/bash -c "source /app/.venv/bin/activate && make html" 17RUN /bin/bash -c "source /app/.venv/bin/activate && make html"
18 18
19 19
20FROM alpine:latest
21
22RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
23
24RUN apk add --update git openssh-client && rm -rf /var/cache/apk/*
25
26WORKDIR /html
27
28ENV COMMIT_USER="clarkzjw"
29ENV COMMIT_EMAIL="[email protected]"
30
31RUN git clone [email protected]:clarkzjw/blog.jinwei.me.git /html && git checkout gh-pages
32
33COPY --from=builder /app/_build/html /html
34
35RUN git add -A && git commit -m "`date`" && git push origin gh-pages
36
37
20FROM nginx:alpine 38FROM nginx:alpine
21 39
22COPY --from=builder /app/_build/html /usr/share/nginx/html 40COPY --from=builder /app/_build/html /usr/share/nginx/html
Powered by cgit v1.2.3 (git 2.41.0)