Add gitea hooks

This commit is contained in:
JuliusFreudenberger 2022-03-29 22:51:37 +02:00
parent 59306899e7
commit a8c24317ed

9
gitea.sh Normal file
View file

@ -0,0 +1,9 @@
pre() {
docker exec -t -u git gitea_gitea_1 bash -c "/app/gitea/gitea dump -c /data/gitea/conf/app.ini --file /tmp/gitea-dump.zip"
docker cp gitea_gitea_1:/tmp/gitea-dump.zip /tmp/gitea-dump.zip
}
post() {
docker exec -t -u git gitea_gitea_1 bash -c "rm /tmp/gitea-dump.zip"
rm /tmp/gitea-dump.zip
}