From 543dbdc54e0380e4c6f8e8047701178ed61709df Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki Date: Tue, 9 Mar 2021 15:48:57 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ca2e88..c9f5fad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,15 +1,11 @@ -variables: - EXPORT_DIR: "/var/www/html/pages" +image: alpine:latest -stages: - - deploy - -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