From d68362b0354c16f7edf8cd9942a1ccd5e1a6037d Mon Sep 17 00:00:00 2001 From: Kai-Holger Brassel <mail@khbrassel.de> Date: Mon, 7 Dec 2020 09:16:49 +0000 Subject: [PATCH] Enable CI workflow for copying files to transfer portal web server. --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..02711ec --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +# This file is a template, and might need editing before it works on your project. +# Full project: https://gitlab.com/pages/plain-html +variables: + EXPORT_DIR: "/var/www/html/pages" + +pages-master: + stage: deploy + script: + - mkdir "$EXPORT_DIR/$CI_PROJECT_NAME" + - cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME" + tags: + - production + artifacts: + paths: + - public + expire_in: 1 day + + only: + - master -- GitLab