Commit f3f20533 authored by Wolfgang Knopki's avatar Wolfgang Knopki
Browse files

[cicd] deployment to testserver

3 merge requests!32Prepare production,!29Mlab 197,!6Contact mailinglist assets
Pipeline #217 failed
Showing with 38 additions and 18 deletions
+38 -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/"
variables:
EXPORT_PAGES_DIR: "/opt/tomcat9/webapps/ROOT/"
pages-master:
stage: deploy
script:
- echo $EXPORT_PAGES_DIR
- mkdir .public
- cp -r css .public
- cp -r images .public
- cp -r js .public
- cp -r includes .public
- cp *.html .public
- mv .public public
- cp -r public/* "$EXPORT_PAGES_DIR"
artifacts:
paths:
- public
only:
- master
script:
- echo $EXPORT_PAGES_DIR
- mkdir .public
- cp -r css .public
- cp -r images .public
- cp -r js .public
- cp -r includes .public
- cp *.html .public
- mv .public public
- cp -r public/* "$EXPORT_PAGES_DIR"
artifacts:
paths:
- public
only:
- master
pages-devel:
stage: deploy
script:
- echo $EXPORT_PAGES_DIR
- mkdir .public
- cp -r css .public
- cp -r images .public
- cp -r js .public
- cp -r includes .public
- cp *.html .public
- mv .public public
- scp -r public/* ubuntu@193.196.52.30:"$EXPORT_PAGES_DIR"
- ssh -t ubuntu@193.196.52.30 "sudo chown tomcat:tomcat $EXPORT_PAGES_DIR"
artifacts:
paths:
- public
only:
- devel
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment