Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Administrator
m4lab_landing_page
Commits
f3f20533
Commit
f3f20533
authored
5 years ago
by
Wolfgang Knopki
Browse files
Options
Download
Email Patches
Plain Diff
[cicd] deployment to testserver
parent
5d37f013
master
testing
3 merge requests
!32
Prepare production
,
!29
Mlab 197
,
!6
Contact mailinglist assets
Pipeline
#217
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+38
-18
.gitlab-ci.yml
with
38 additions
and
18 deletions
+38
-18
.gitlab-ci.yml
+
38
-
18
View file @
f3f20533
# 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
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets