From 7c745fb13e5556251b6f4a8790a6fe2726758e90 Mon Sep 17 00:00:00 2001 From: Volker Coors <volker.coors@hft-stuttgart.de> Date: Sun, 21 Jun 2020 14:07:13 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ec73d9b..f48e8a1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,12 @@ -image: alpine:latest +variables: + EXPORT_DIR: "/var/www/html/pages" -pages: +pages-master: stage: deploy script: - - echo 'Nothing to do...' - artifacts: - paths: - - public - only: - - master + - mkdir "$EXPORT_DIR/$CI_PROJECT_NAME" + - cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME" + tags: + - production + only: + - master -- GitLab