From 99cc083c6ebedcf5004d8e36180156bd95dd10dd Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de> Date: Tue, 9 Mar 2021 16:20:36 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 174c1c0..61336ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,4 @@ -variables: - EXPORT_DIR: "/var/www/html/pages" +image: alpine:latest stages: - test @@ -17,12 +16,12 @@ pages-test: only: - master -pages-master: +pages: stage: deploy script: - - mkdir -p "$EXPORT_DIR/$CI_PROJECT_NAME" - - cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME" - tags: - - production - only: - - master + - echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/" + artifacts: + paths: + - public + only: + - master -- GitLab