docker/hexo
2018-07-20 13:13:55 +08:00
..
Dockerfile hexo 2018-07-20 13:13:55 +08:00
README.md hexo 2018-07-20 13:13:55 +08:00
start.sh hexo 2018-07-20 13:13:55 +08:00

mindoc

创建镜像

docker build -t ccr.ccs.tencentyun.com/yy-dk/hexo:latest .

也可以直接下载镜像

docker pull ccr.ccs.tencentyun.com/yy-dk/hexo:latest

创建容器

docker run -d \
      --privileged=true \
      -p 8080:80 \
      -e BRANCH=master \
      -e REPOSITORY=http://gitlab+deploy-token-6:an_zUzQceWQW4bX1b4Ws@git.yangyufans.com:yangyufans/hexo-test.git \
      --name hexo-test ccr.ccs.tencentyun.com/yy-dk/hexo:latest
  • BRANCH 分支名称可在本地部署使用develop预览线上环境用master
  • REPOSITORY 仓库地址

http://<用户名>:< token >@<仓库地址>

自动部署

发布文章只需要将文章提交到对应的仓库docker 容器自动更新文章内容