From 68fdd28f7a5e887133cf75de885d2ad5fac88616 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Sat, 25 Jan 2025 00:46:42 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..b41b521 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,13 @@ +stages: + - deploy + +ai.unturf.com: + stage: deploy + tags: + - ai.unturf.com + only: + - main # Change this if you want to deploy from other branches + script: + - echo "Deploying repository to /opt/www using rsync..." + - sudo rsync -av --delete "$CI_PROJECT_DIR/" "/opt/www/" + - echo "Deployment to /opt/www completed successfully."