From a8c24317ed3d28a31c06655a905a5e94ac4e7dd0 Mon Sep 17 00:00:00 2001 From: JuliusFreudenberger Date: Tue, 29 Mar 2022 22:51:37 +0200 Subject: [PATCH] Add gitea hooks --- gitea.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 gitea.sh diff --git a/gitea.sh b/gitea.sh new file mode 100644 index 0000000..4055828 --- /dev/null +++ b/gitea.sh @@ -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 +}