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

[cicd] deployment to testserver

parent 5d37f013
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. # This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/plain-html # Full project: https://gitlab.com/pages/plain-html
pages:
variables: variables:
EXPORT_PAGES_DIR: "/opt/tomcat9/webapps/ROOT/" EXPORT_PAGES_DIR: "/opt/tomcat9/webapps/ROOT/"
pages-master:
stage: deploy stage: deploy
script: script:
- echo $EXPORT_PAGES_DIR - echo $EXPORT_PAGES_DIR
- mkdir .public - mkdir .public
- cp -r css .public - cp -r css .public
- cp -r images .public - cp -r images .public
- cp -r js .public - cp -r js .public
- cp -r includes .public - cp -r includes .public
- cp *.html .public - cp *.html .public
- mv .public public - mv .public public
- cp -r public/* "$EXPORT_PAGES_DIR" - cp -r public/* "$EXPORT_PAGES_DIR"
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- master - 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