.gitlab-ci.yml 674 Bytes
Newer Older
1
update:
Dominik Hebeler's avatar
Bugfix  
Dominik Hebeler committed
2 3 4
  only:
    - tags
    - triggers
5
  before_script:
6
    # Abhängigkeiten überprüfen
7 8
    - which composer
    - which git
Dominik Hebeler's avatar
Dominik Hebeler committed
9
    - which php7.0
Dominik Hebeler's avatar
Bugfix  
Dominik Hebeler committed
10
  script:
11
    # Pfad zum neu geklonten Repo
12
    - path=`pwd`
Dominik Hebeler's avatar
Bugfix  
Dominik Hebeler committed
13
    - cd ~/
Dominik Hebeler's avatar
Dominik Hebeler committed
14
    - if [ -d MetaGer_neu ]; then rm -rf MetaGer_neu;fi
Dominik Hebeler's avatar
Dominik Hebeler committed
15 16 17
    - git clone "$path" MetaGer_neu
    - cd MetaGer_neu
    - composer update
Dominik Hebeler's avatar
Dominik Hebeler committed
18
    - chmod -R 777 storage
Dominik Hebeler's avatar
Dominik Hebeler committed
19
    - chmod -R 777 bootstrap/cache
Dominik Hebeler's avatar
Dominik Hebeler committed
20
    - scp metager@metager3.de:~/.env .
Dominik Hebeler's avatar
Dominik Hebeler committed
21 22
    - scp metager@metager3.de:~/sumas.xml config/
    - scp metager@metager3.de:~/sumasEn.xml config/
Dominik Hebeler's avatar
Dominik Hebeler committed
23
    - chmod 777 config/sumas.xml config/sumasEn.xml
Dominik Hebeler's avatar
Dominik Hebeler committed
24 25 26
    - cd ~/
    - rm -rf MetaGer
    - mv MetaGer_neu MetaGer