From 7e14ebc5432447781e94f5795f6e73fecc1244d7 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sat, 16 Apr 2022 13:06:39 +0530 Subject: [PATCH] fix: force push deployment branch --- scripts/ci.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ci.sh b/scripts/ci.sh index 1a2015d..a2b6877 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -74,7 +74,8 @@ deploy() { then help else - git -c core.sshCommand="/usr/bin/ssh -i $SSH_ID_FILE" push $SSH_REMOTE_NAME $2 + git -c core.sshCommand="/usr/bin/ssh -i $SSH_ID_FILE" \ + push --force $SSH_REMOTE_NAME $2 curl -vv --location --request \ POST "http://hostea.org:5000/api/v1/update"\ --header 'Content-Type: application/json' \