.gitlab-ci.yml 650 Bytes
Newer Older
Ratnadeep Rajendra Kharade's avatar
Ratnadeep Rajendra Kharade committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
variables:
  EXPORT_DIR: "/var/www/html/pages"

stages:
    - test
    - deploy
  
pages-test:
  stage: test
  script:
    - echo "Teste, ob Projektname gesetzt ist..."
    - (! grep 'projektname= ""' public/settings.js)
    - echo "Teste, ob Projektseitenlink gesetzt ist..."
    - (! grep 'projektseitenlink= ""' public/settings.js)
    - echo "Teste, ob Kontaktperson gesetzt ist..."
    - (! grep 'Max Mustermann' public/kontakt.html)
  only:
    - master
  
pages-master:
  stage: deploy
  script:
    - mkdir -p "$EXPORT_DIR/$CI_PROJECT_NAME"	
    - cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME"
  tags: 
    - production
  only: 
    - master