.gitlab-ci.yml 468 Bytes
Newer Older
Wolfgang Knopki's avatar
Wolfgang Knopki committed
1
2
variables:
  EXPORT_DIR: "/var/www/html/pages"
GitLab's avatar
GitLab committed
3

4
5
6
7
8
9
10
11
12
13
14
stages:
    - test
    - deploy
  
pages-test:
  stage: test
  script:
    - (! grep 'projektname= ""' public/settings.js)
    - (! grep 'projektseitenlink= ""' public/settings.js)
    - (! grep 'Max Mustermann' public/kontakt.html)
  
Wolfgang Knopki's avatar
Wolfgang Knopki committed
15
pages-master:
GitLab's avatar
GitLab committed
16
17
  stage: deploy
  script:
Wolfgang Knopki's avatar
Wolfgang Knopki committed
18
19
20
21
22
23
    - mkdir "$EXPORT_DIR/$CI_PROJECT_NAME"	
    - cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME"
  tags: 
    - production
  only: 
    - master