.gitlab-ci.yml 1.18 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"
Wolfgang Knopki's avatar
Wolfgang Knopki committed
6
  EXPORT_PAGES_DIR: "/var/www/html/"
Wolfgang Knopki's avatar
Wolfgang Knopki committed
7
  EXPORT_PAGES_DIR_TEST: "/data/www/html/"
8
9

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

33
34
pages-devel:    
  stage: deploy
35
36
37
38
39
40
  script:
    - echo $EXPORT_PAGES_DIR
    - mkdir .public
    - cp -r css .public
    - cp -r images .public
    - cp -r js .public
41
    - cp -r img .public
42
    - cp -r downloads .public
43
    - cp -r help .public
44
    - cp -r fonts .public
Wolfgang Knopki's avatar
Wolfgang Knopki committed
45
    - cp favicon.ico .public
46
47
    - cp *.html .public
    - mv .public public
Wolfgang Knopki's avatar
Wolfgang Knopki committed
48
    - cp -r public/* "$EXPORT_PAGES_DIR_TEST"
49
50
51
  artifacts:
    paths:
      - public
52
53
  tags: 
    - testing
54
  only:
55
    - testing