From 9cbef1c8fde4e49ca65a7a6b8f7028446ebe4a23 Mon Sep 17 00:00:00 2001 From: thom Date: Mon, 28 Apr 2025 23:10:54 +0000 Subject: [PATCH] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d1ce522..bd3ae74 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,9 +9,8 @@ deploy: - mkdir -p ~/.ssh - echo "$SSH_PRIVATE_KEY" | base64 -d > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 - - echo "Host deploy-target" >> ~/.ssh/config - - echo " HostName 192.168.1.14" >> ~/.ssh/config + - echo "Host deploy" >> ~/.ssh/config + - echo " HostName your-server-ip" >> ~/.ssh/config - echo " User gitdeploy" >> ~/.ssh/config - - echo " StrictHostKeyChecking no" >> ~/.ssh/config script: - - ssh deploy-target "true" # Trigger forced command (will auto-run git pull) \ No newline at end of file + - ssh deploy "cd /var/www/wiimart.org && git pull && sudo systemctl reload httpd" \ No newline at end of file