【发布时间】:2018-07-15 16:43:57
【问题描述】:
我有一个本地 git 服务器,我在其中托管带有博客软件 (hexo) 的 docker 容器的文件。 推送到本地git服务器后,我想自动将博客推送到gitlab。
这是我推送到本地 git 服务器的目录:
hexo << to remote
- scaffolds << to remote
- source << to remote
- themes << to remote
- _config.yml << to remote
- package.json << to remote
- README.md << to remote
docker-compose.yml
Dockerfile
README.md
目录 hexo 包含博客。
以<<to remote 结尾的行也是我想推送到 gitlab 的。
这是否可能使用 git webhooks,例如在我的本地 git 服务器上使用 post-recieve 挂钩?如果是这样,怎么做?我找不到关于它的好教程。 我只想将文件夹 hexo 及其内容推送到 gitlab,而不是整个存储库。
提前致谢。
【问题讨论】:
标签: git docker gitlab webhooks hexo