.gitlab-ci.yml 964 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
Wolfgang Knopki's avatar
Wolfgang Knopki committed
3
4
5
6
7
8

variables:
  JAVA_HOME: "/opt/jdk-12"
  EXPORT_PAGES_DIR: "/opt/tomcat9/webapps/ROOT/"

pages-master:    
9
10
  stage: deploy
  script:
Wolfgang Knopki's avatar
Wolfgang Knopki committed
11
12
13
14
15
16
17
18
19
    - 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"
20
21
  artifacts:
    paths:
Wolfgang Knopki's avatar
Wolfgang Knopki committed
22
23
24
      - public
  tags: 
    - production
25
  only:
Wolfgang Knopki's avatar
Wolfgang Knopki committed
26
    - master
27

Wolfgang Knopki's avatar
Wolfgang Knopki committed
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
    - cp -r public/* "$EXPORT_PAGES_DIR"
  artifacts:
    paths:
      - public
  tags: 
    - testing
  only:
    - testing