.gitlab-ci.yml 1.63 KB
Newer Older
Dominik Hebeler's avatar
Dominik Hebeler 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
update(144.76.113.134):
  tags:
  - 144.76.113.134
  only:
    - tags
    - triggers
  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
    - chmod -R 777 storage
    - chmod -R 777 bootstrap/cache
    - 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
25 26
    - scp metager@metager3.de:~/blacklistUrl.txt config/
    - scp metager@metager3.de:~/blacklistDomains.txt config/
Dominik Hebeler's avatar
Dominik Hebeler committed
27 28 29 30 31 32 33 34
    - chmod 777 config/sumas.xml config/sumasEn.xml
    - cd ~/
    - rm -rf MetaGer
    - mv MetaGer_neu MetaGer
    
update(metager3.de):
  tags:
  - metager3
Dominik Hebeler's avatar
Bugfix  
Dominik Hebeler committed
35 36 37
  only:
    - tags
    - triggers
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
Bugfix  
Dominik Hebeler committed
43
  script:
44
    # Pfad zum neu geklonten Repo
45
    - path=`pwd`
Dominik Hebeler's avatar
Bugfix  
Dominik Hebeler committed
46
    - cd ~/
Dominik Hebeler's avatar
Dominik Hebeler committed
47
    - if [ -d MetaGer_neu ]; then rm -rf MetaGer_neu;fi
Dominik Hebeler's avatar
Dominik Hebeler committed
48 49 50
    - git clone "$path" MetaGer_neu
    - cd MetaGer_neu
    - composer update
Dominik Hebeler's avatar
Dominik Hebeler committed
51
    - chmod -R 777 storage
Dominik Hebeler's avatar
Dominik Hebeler committed
52
    - chmod -R 777 bootstrap/cache
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 61
    - cd ~/
    - rm -rf MetaGer
    - mv MetaGer_neu MetaGer