#!/bin/bash BRANCH=$(git rev-parse --symbolic --abbrev-ref $1) RP="${PWD#/srv/git/}" echo "Creating minio backup." git bundle create repo.bundle --all mcli mv "$PWD/repo.bundle" "hs/git/$PWD/repo.bundle" echo "Repository $RP backed up to minio." echo "Sending cicd push webhook" curl -s -o /dev/null -w "" https://n8n.davidon.top/webhook/git/push/$RP/$BRANCH echo "Sent cicd push webhook"