.gitlab-ci.yml 655 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
Bugfix  
Dominik Hebeler committed
9
  script:
10
    # Pfad zum neu geklonten Repo
11
    - path=`pwd`
Dominik Hebeler's avatar
Bugfix  
Dominik Hebeler committed
12
    - cd ~/
Dominik Hebeler's avatar
Dominik Hebeler committed
13
    - if [ -d MetaGer_neu ]; then rm -rf MetaGer_neu;fi
Dominik Hebeler's avatar
Dominik Hebeler committed
14 15 16
    - git clone "$path" MetaGer_neu
    - cd MetaGer_neu
    - composer update
Dominik Hebeler's avatar
Dominik Hebeler committed
17
    - chmod -R 777 storage
Dominik Hebeler's avatar
Dominik Hebeler committed
18
    - chmod -R 777 bootstrap/cache
Dominik Hebeler's avatar
Dominik Hebeler committed
19
    - scp metager@metager3.de:~/.env .
Dominik Hebeler's avatar
Dominik Hebeler committed
20 21
    - scp metager@metager3.de:~/sumas.xml config/
    - scp metager@metager3.de:~/sumasEn.xml config/
Dominik Hebeler's avatar
Dominik Hebeler committed
22
    - chmod 777 config/sumas.xml config/sumasEn.xml
Dominik Hebeler's avatar
Dominik Hebeler committed
23 24 25
    - cd ~/
    - rm -rf MetaGer
    - mv MetaGer_neu MetaGer