diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b35fd8f4f598d2065509d3d3507f966d1d0b324..9b9201dc2d8978fc1106db176beb4a75c945b48b 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