Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2020
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. stages:
  2. - compile
  3. - deploy
  4.  
  5. windows compile:
  6. stage: compile
  7. tags:
  8. - windows
  9. script:
  10. -test
  11. artifacts:
  12. paths:
  13. - xxxx.exe
  14. - build/deploy
  15. when: on_success
  16. expire_in: 7day
  17.  
  18. linux compile:
  19. stage: compile
  20. tags:
  21. - linux
  22. script:
  23. - test
  24. artifacts:
  25. paths:
  26. - build/xxx_$CI_PIPELINE_IID
  27.  
  28. windows deploy:
  29. stage: deploy
  30. tags:
  31. - windows
  32. script:
  33. - test
  34. artifacts:
  35. paths:
  36. - xxx_$CI_PIPELINE_IID.zip
  37. when: on_success
  38.  
  39. linux deploy:
  40. stage: deploy
  41. tags:
  42. - linux
  43. script:
  44. - tar -czvf xxx_$CI_PIPELINE_IID.tar.gz build/xxx_$CI_PIPELINE_IID
  45. artifacts:
  46. paths:
  47. - xxx_$CI_PIPELINE_IID.tar.gz
  48. when: on_success
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement