From f4936f9fae889567ae01d5c2d83f5c6db46daa39 Mon Sep 17 00:00:00 2001 From: Keyu Bao <keyu.bao@hft-stuttgart.de> Date: Wed, 27 May 2020 07:42:32 +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 7b35fd8..9b9201d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,12 @@ -pages: +variables: + EXPORT_DIR: "/var/www/html/pages" + +pages-master: stage: deploy script: - - mkdir .public - - cp -r * .public - - mv .public public - artifacts: - paths: - - public + - mkdir "$EXPORT_DIR/INsource" + - cp -r public/* "$EXPORT_DIR/INsource" + tags: + - production only: - - master \ No newline at end of file + - master \ No newline at end of file -- GitLab