.gitlab-ci.yml 1.4 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 25 26 27 28 29 30 31 32
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/
    - 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
33 34 35
  only:
    - tags
    - triggers
36
  before_script:
37
    # Abhängigkeiten überprüfen
38 39
    - which composer
    - which git
Dominik Hebeler's avatar
Dominik Hebeler committed
40
    - which php7.0
Dominik Hebeler's avatar
Bugfix  
Dominik Hebeler committed
41
  script:
42
    # Pfad zum neu geklonten Repo
43
    - path=`pwd`
Dominik Hebeler's avatar
Bugfix  
Dominik Hebeler committed
44
    - cd ~/
Dominik Hebeler's avatar
Dominik Hebeler committed
45
    - if [ -d MetaGer_neu ]; then rm -rf MetaGer_neu;fi
Dominik Hebeler's avatar
Dominik Hebeler committed
46 47 48
    - git clone "$path" MetaGer_neu
    - cd MetaGer_neu
    - composer update
Dominik Hebeler's avatar
Dominik Hebeler committed
49
    - chmod -R 777 storage
Dominik Hebeler's avatar
Dominik Hebeler committed
50
    - chmod -R 777 bootstrap/cache
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
    - chmod 777 config/sumas.xml config/sumasEn.xml
Dominik Hebeler's avatar
Dominik Hebeler committed
55 56 57
    - cd ~/
    - rm -rf MetaGer
    - mv MetaGer_neu MetaGer