abiosoft / abiosoft/caddy-git

Problems with setting up github hook

Aperta
#81 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
206
Fork
42
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.