From 1cfe6599f613551445802cacb0e089c811820e9a Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de> Date: Fri, 31 May 2019 08:22:03 +0200 Subject: [PATCH] [initial] yml deployment file --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..b80ea04 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +# This file is a template, and might need editing before it works on your project. +# Full project: https://gitlab.com/pages/plain-html +pages: + variables: + EXPORT_PAGES_DIR: "/opt/tomcat9/webapps/ROOT/ + stage: deploy + script: + - echo $EXPORT_PAGES_DIR + - mkdir .public + - cp -r index.html .public + - mv .public public + - cp -r public/. "$EXPORT_PAGES_DIR" + artifacts: + paths: + - public + only: + - master + -- GitLab