From dce283d2aa9cc3c3bad7888860fb453539966e65 Mon Sep 17 00:00:00 2001 From: MrSniff Date: Tue, 9 Dec 2025 16:11:03 +0000 Subject: [PATCH] =?UTF-8?q?Pipeline=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..33f3e11 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,17 @@ +stages: + - deploy + +deploy_astra_os: + stage: deploy + tags: + - schematic_runner + before_script: + - sudo apt-get update -y && sudo apt-get install -y rsync + script: + - SRC_DIR="./AstraOS" + - DEST_DIR="/var/www/astra_os" + - echo "Deploying from $SRC_DIR to $DEST_DIR ..." + - sudo mkdir -p "$DEST_DIR" + - sudo rsync -avz --delete --exclude '.git' --exclude '.gitlab-ci.yml' "$SRC_DIR/" "$DEST_DIR/" + only: + - main \ No newline at end of file