You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

43 lines
2.3 KiB

  1. language: node_js
  2. node_js:
  3. - '8'
  4. env:
  5. global:
  6. - MATTERMOST_CHANNEL=teamconnecteurs
  7. - DEPLOY_REPOSITORY="git@github.com:konnectors/net-entreprise-micro.git"
  8. # REGISTRY_TOKEN(editor=cozy, app=net-entreprise-micro)
  9. - secure: EkbT0cYWKRum/WWzMs96EEz6C7wNo4QLTyr3bmCks/CKpgNaSTnJr7HOQHrvRBigIm0N8qdQ1FozaMpYXsfLV/gXH6mR09+JIOqd8EqU4KWdlBgiXTVN7L7cmrCrY2CzWPc/oHldSPBohEPoEAFSNTMkFtQmF+fJrKAtt1ue8fqUbPB07gIghK0+1l4Tx7708jjCird1QDvlHo33OHOTdQFgcsvWCMO0I9zBCZ9ibsQ8E2awJbtHI+hKF2gtIgyL8rol8its9Byzc1gH3IqTu6Dnhp3/Oo7gJn8WKo4nBnVjYyguXmeN1Zx9nHei0zZ8Etakncv44682byRVlRG0p/j7EZTvFN0J1XZ0LzNTJXib8HRh+/VXP1GcHiJurz+Xz097zm90bhBZjLapc/JklPhG7cRaTdrUc1NRXoMrN7W1rkanIJgGz1j/QYt7z7RLkLAeOkCecpLuZR4TdyiDnYBytqDGssoPz1A1ySwBexCmdT4sTN9NlxCyvR3PSVV13iTg3pZzw6EhCvdMws54bHzKmstV6Oy/e3Wklqb5WttGISayD3KVvYL/oiPs4tbkClvqzasMHlnJy8vmt0HQmlYEuJCkM17B2CZgyqh+KfC3PjSC+t4SHkqiyhWX7w1jyNCgzR4kfcrh9Kr02DUp6EAcMrdgYCMvYS4Gtxsvdpc=
  10. # MATTERMOST_HOOK_URL
  11. - secure: dXB6+WdS5XW+MLxcWTZVqPYMEkZdUql6ziO4RHWQwp2WCyCmEa4ZOHCXYXBeqD/uW2Khd6PRjKd2PHR5SaeUgLG/ODWYQ3gCI3Zok587Ac1ZBx4hambdHGrRAUhWLATafL3gp6dtdMaKDC7jXA9UPBXqVK+rGsLarOQ6Y39vCZpX/hy1MTy0fCwlW7/jBwijZRJ7MQsR+aK52kguVPB6zxls2HEOsBzPW1ZwHzf8EeY+Vu6CQBRxZNN+D/iiRlWBzyxQ4NgP18BVQAkaBZK+1/37cdYzMX3XvDWjl8eKVLDcOhGAtkeBApzpnMtD+8uHusUy2edDxvUJkDtYcRTod50SQud99x03qcFk6Ff/5YUmYr0/ea07UEyaY1Vf04hf6x7qbk1O+pgFRfwxYNauVMGpSmxhoYQCit4UbLuolSILIshdklypjGgcc3Y4lT2LZkJ5eKAgDSJVZ3zK4003f1fw/ohqq7xlzuFaJ7J+TJU9ZigMn26TNchIYtL/i3Xjfly7ow0SNJ01z4GGiPXiiRWPl70JRA6UvwtjhjcP7ANubQ1WYu0ew/HQo7CKYgfNQ123BkJNmzh6Xf2AhvpqDWsgu9jROfP2RU29OTOG47RUmlxIYgOZFuQz8heBdPfCV16qDfacAom9CYAN2wQQtQ4NgP+rUwkQ3OoyqXySq2I=
  12. cache:
  13. yarn: true
  14. directories:
  15. - node_modules
  16. branches:
  17. except:
  18. - build
  19. - build-debug
  20. script:
  21. - yarn lint
  22. - yarn build
  23. deploy:
  24. - provider: script
  25. skip-cleanup: true
  26. script: DEPLOY_BRANCH=build yarn deploy && yarn cozyPublish
  27. on:
  28. branch: master
  29. - provider: script
  30. skip-cleanup: true
  31. script: DEPLOY_BRANCH=build yarn deploy && yarn cozyPublish --postpublish mattermost
  32. on:
  33. tags: true
  34. before_install:
  35. - openssl aes-256-cbc -K $encrypted_fb9d73f038c1_key -iv $encrypted_fb9d73f038c1_iv
  36. -in github_deploy_key.enc -out /tmp/github_deploy_key -d
  37. - eval "$(ssh-agent -s)"
  38. - chmod 600 /tmp/github_deploy_key
  39. - ssh-add /tmp/github_deploy_key
  40. after_deploy:
  41. - rm /tmp/github_deploy_key
  42. - ssh-add -D