.gitlab-ci.yml 533 B

123456789101112131415161718192021222324
  1. stages:
  2. - qa
  3. - deploy_test
  4. before_script:
  5. - apt-get install
  6. - curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
  7. - apt-get install -y nodejs
  8. - npm install yarn --force
  9. - yarn generate
  10. qa:
  11. stage: qa
  12. script:
  13. - yarn lint
  14. deploy_test:
  15. stage: deploy_test
  16. script:
  17. # - apt-get update -qq && apt-get install -y -qq sshpass
  18. # - ssh exploitation@test5 "cd /var/opentalent/git/portail_v2 && nvm exec yarn deploy && echo 'Deploy successful' "
  19. - ssh exploitation@test3 'ls /tmp'
  20. only:
  21. - home