.gitlab-ci.yml 962 Bytes
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
14
15
16
17
18
19
20
21
22
  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
23
24
  tags: 
    - production
25
26
  only:
    - master
27

28
29
pages-devel:    
  stage: deploy
30
31
32
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
    - cp -r includes .public
    - cp *.html .public
    - mv .public public
39
    - cp -r public/* "$EXPORT_PAGES_DIR"
40
41
42
  artifacts:
    paths:
      - public
43
44
  tags: 
    - testing
45
46
  only:
    - devel