abiosoft / abiosoft/caddy-git

Problems with setting up github hook

未关闭
#81 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
206
派生
42
PR 合并指标
30 天内没有已合并 PR

描述

caddy-git seems really cool but I am at the third unsuccessful attempt at setting it up. This time I decided to ask for help before giving up.

Following is my git block in my Caddyfile.

```
git {
repo https://github.com/repo/path.git
key /etc/caddy/keys/my_id_rsa
hook /publish "my_key"
path /opt/build-dir
then hugo --destination=/var/www/blog
}
```

I suspect following errors in my log are from caddy-git

```
mkdir: cannot create directory '/var/www/.ssh': Permission denied
touch: cannot touch '/var/www/.ssh/known_hosts': No such file or directory
/tmp/caddy839530012: line 5: /var/www/.ssh/tmp_hosts: No such file or directory
/tmp/caddy839530012: line 6: /var/www/.ssh/known_hosts: No such file or directory
```
Anyhow, the push endpoint gives 404. Any help?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。