.gitlab-ci.yml 1.03 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/"
7
8

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
    - cp -r js .public
    - cp *.html .public
    - mv .public public
    - cp -r public/* "$EXPORT_PAGES_DIR"
  artifacts:
    paths:
      - public
25
26
  tags: 
    - production
27
28
  only:
    - master
29

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