.gitlab-ci.yml 1.7 KB
Newer Older
Dominik Hebeler's avatar
Dominik Hebeler committed
1
2
3
4
update(144.76.113.134):
  tags:
  - 144.76.113.134
  only:
Dominik Hebeler's avatar
Dominik Hebeler committed
5
    - master
Dominik Hebeler's avatar
Dominik Hebeler committed
6
7
8
9
10
  before_script:
    # Abhängigkeiten überprüfen
    - which composer
    - which git
    - which php7.0
Dominik Hebeler's avatar
Dominik Hebeler committed
11
    - which sqlite3
Dominik Hebeler's avatar
Dominik Hebeler committed
12
13
14
15
16
17
18
19
  script:
    # Pfad zum neu geklonten Repo
    - path=`pwd`
    - cd ~/
    - if [ -d MetaGer_neu ]; then rm -rf MetaGer_neu;fi
    - git clone "$path" MetaGer_neu
    - cd MetaGer_neu
    - composer update
Dominik Hebeler's avatar
Dominik Hebeler committed
20
    - php artisan queue:restart
Dominik Hebeler's avatar
Dominik Hebeler committed
21
22
23
    - scp metager@metager3.de:~/.env .
    - scp metager@metager3.de:~/sumas.xml config/
    - scp metager@metager3.de:~/sumasEn.xml config/
Dominik Hebeler's avatar
Dominik Hebeler committed
24
25
    - scp metager@metager3.de:~/blacklistUrl.txt config/
    - scp metager@metager3.de:~/blacklistDomains.txt config/
Dominik Hebeler's avatar
Dominik Hebeler committed
26
    - chmod 777 config/sumas.xml config/sumasEn.xml
Dominik Hebeler's avatar
Dominik Hebeler committed
27
28
    - chmod -R 777 storage
    - chmod -R 777 bootstrap/cache
Dominik Hebeler's avatar
Dominik Hebeler committed
29
30
31
32
33
34
35
    - cd ~/
    - rm -rf MetaGer
    - mv MetaGer_neu MetaGer
    
update(metager3.de):
  tags:
  - metager3
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
36
  only:
Dominik Hebeler's avatar
Dominik Hebeler committed
37
    - master
38
  before_script:
39
    # Abhängigkeiten überprüfen
40
41
    - which composer
    - which git
Dominik Hebeler's avatar
Dominik Hebeler committed
42
    - which php7.0
Dominik Hebeler's avatar
Dominik Hebeler committed
43
    - which sqlite3
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
44
  script:
45
    # Pfad zum neu geklonten Repo
46
    - path=`pwd`
Dominik Hebeler's avatar
Bugfix    
Dominik Hebeler committed
47
    - cd ~/
Dominik Hebeler's avatar
Dominik Hebeler committed
48
    - if [ -d MetaGer_neu ]; then rm -rf MetaGer_neu;fi
Dominik Hebeler's avatar
Dominik Hebeler committed
49
50
51
    - git clone "$path" MetaGer_neu
    - cd MetaGer_neu
    - composer update
Dominik Hebeler's avatar
Dominik Hebeler committed
52
    - php artisan queue:restart
Dominik Hebeler's avatar
Dominik Hebeler committed
53
    - scp metager@metager3.de:~/.env .
Dominik Hebeler's avatar
Dominik Hebeler committed
54
55
    - scp metager@metager3.de:~/sumas.xml config/
    - scp metager@metager3.de:~/sumasEn.xml config/
Dominik Hebeler's avatar
Dominik Hebeler committed
56
57
    - scp metager@metager3.de:~/blacklistUrl.txt config/
    - scp metager@metager3.de:~/blacklistDomains.txt config/
Dominik Hebeler's avatar
Dominik Hebeler committed
58
    - chmod 777 config/sumas.xml config/sumasEn.xml
Dominik Hebeler's avatar
Dominik Hebeler committed
59
60
    - chmod -R 777 storage
    - chmod -R 777 bootstrap/cache
Dominik Hebeler's avatar
Dominik Hebeler committed
61
62
63
    - cd ~/
    - rm -rf MetaGer
    - mv MetaGer_neu MetaGer