.gitlab-ci.yml 1.1 KB
Newer Older
1
2
# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/plain-html
3
4

variables:
5
  JAVA_HOME: "/opt/jdk-12"
6
7
8
  EXPORT_PAGES_DIR: "/opt/tomcat9/webapps/ROOT/"

pages-master:    
9
  stage: deploy
10
11
12
13
  script:
    - echo $EXPORT_PAGES_DIR
    - mkdir .public
    - cp -r css .public
14
15
    - cp -r img .public
    - cp -r fonts .public
16
    - cp -r images .public
17
    - cp -r downloads .public 
18
19
20
21
22
23
24
25
    - cp -r js .public
    - cp -r includes .public
    - cp *.html .public
    - mv .public public
    - cp -r public/* "$EXPORT_PAGES_DIR"
  artifacts:
    paths:
      - public
26
27
  tags: 
    - production
28
29
  only:
    - master
30

31
32
pages-devel:    
  stage: deploy
33
34
35
36
37
38
  script:
    - echo $EXPORT_PAGES_DIR
    - mkdir .public
    - cp -r css .public
    - cp -r images .public
    - cp -r js .public
39
    - cp -r img .public
40
    - cp -r downloads .public
41
    - cp -r fonts .public
42
43
44
    - cp -r includes .public
    - cp *.html .public
    - mv .public public
45
    - cp -r public/* "$EXPORT_PAGES_DIR"
46
47
48
  artifacts:
    paths:
      - public
49
50
  tags: 
    - testing
51
  only:
52
    - testing