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