Add gitea hooks
This commit is contained in:
parent
59306899e7
commit
a8c24317ed
1 changed files with 9 additions and 0 deletions
9
gitea.sh
Normal file
9
gitea.sh
Normal 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
|
||||||
|
}
|
Loading…
Reference in a new issue