diff --git a/docker/deployer_docker/webhook/gitea-webhook-handler.py b/docker/deployer_docker/webhook/gitea-webhook-handler.py index 2def9c8..e91be0c 100644 --- a/docker/deployer_docker/webhook/gitea-webhook-handler.py +++ b/docker/deployer_docker/webhook/gitea-webhook-handler.py @@ -24,8 +24,8 @@ GIT_ENV = os.environ.copy() if GIT_AUTH_MODE == 'http': auth_option = [] elif GIT_AUTH_MODE == 'ssh': - GIT_ENV["GIT_SSH_COMMAND"] = "ssh -i /ssh/ssh-key" - auth_option=['-o','StrictHostKeyChecking=accept-new'] + GIT_ENV["GIT_SSH_COMMAND"] = "ssh -i /ssh/ssh-key -o StrictHostKeyChecking=accept-new" + auth_option=[] else: raise ValueError("Invalid GIT_AUTH_MODE")