.gitlab-ci.yml 1.13 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
22
23
24
25
26
    - cp -r js .public
    - cp *.html .public
    - mv .public public
    - cp -r public/* "$EXPORT_PAGES_DIR"
  artifacts:
    paths:
      - public
27
28
  tags: 
    - production
29
30
  only:
    - master
31

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