From 3f8415d59e7971054410636579bbf915e2bf330b Mon Sep 17 00:00:00 2001 From: Selim Gozel Date: Thu, 29 May 2025 16:33:16 +0000 Subject: [PATCH] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..b3a949f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,12 @@ +stages: + - deploy + +deploy: + stage: deploy + tags: + - shell + before_script: + - echo "$SSH_PRIVATE_KEY" | base64 -d > ~/.ssh/id_ed25519 + - chmod 600 ~/.ssh/id_ed25519 + script: + - ssh deploy "cd /var/www/dsimart.org && git pull && sudo systemctl reload httpd" \ No newline at end of file