From 697e34a406e3050fbbcd33ad2e977f7a5d3a5458 Mon Sep 17 00:00:00 2001
From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de>
Date: Mon, 8 Mar 2021 12:55:00 +0000
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 174c1c0..833efcd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,6 @@
-variables:
-  EXPORT_DIR: "/var/www/html/pages"
+image: alpine:latest
 
 stages:
-    - test
     - deploy
   
 pages-test:
@@ -20,9 +18,9 @@ pages-test:
 pages-master:
   stage: deploy
   script:
-    - mkdir -p "$EXPORT_DIR/$CI_PROJECT_NAME"	
-    - cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME"
-  tags: 
-    - production
+    - echo "deploy to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH"
+  artifacts:
+    paths:
+      -public
   only: 
     - master
-- 
GitLab