Commit d7c57ed5 authored by Ilya Rassadin's avatar Ilya Rassadin
Browse files

fix bug

parent f3b2916b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -6,16 +6,20 @@ before_script:
  - 'which rsync || ( apt-get update -y && apt-get install rsync -y )'
  - 'which perl || (apt-get update -y && apt-get install perl -y)'

.set_layouts: &set_layouts |
  cd $CI_PROJECT_DIR/working/ && export LAYOUTS=(`ls -1 -d ./*/|perl -nE 's{^\./(.+)/$}{$1}; print if /^[^.]/'`)

.before_assets:
  before_script:
  # Нижеследующая строчка положит в LAYOUTS все папки внутри working, кроме папок, чье имя начинается с точки.
  - cd $CI_PROJECT_DIR/working/ && export LAYOUTS=(`ls -1 -d ./*/|perl -nE 's{^\./(.+)/$}{$1}; print if /^[^.]/'`)
  - *set_layouts
  script: []

.before_deploy_assets:
  extends: .before_assets
  stage: deploy
  before_script:
  - *set_layouts
  - eval $(ssh-agent -s)
  - ssh-add <(echo "$DEPLOY_KEY")
  - mkdir -p ~/.ssh