Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. stages:
  2. - build
  3. - deploy
  4.  
  5. build prod:
  6. image: node:10.15.0-stretch
  7. stage: build
  8. only:
  9. - tags
  10. script:
  11. - npm install
  12. # Build App
  13. - npm run build
  14. artifacts:
  15. paths:
  16. # Build folder
  17. - dist/
  18. expire_in: 1 hour
  19.  
  20. deploy prod:
  21. image: python:latest
  22. stage: deploy
  23. only:
  24. - tags
  25. script:
  26. - pip install awscli
  27. - aws s3 sync ./dist s3://YOUR_BUCKET_NAME
  28.  
  29. build stage:
  30. image: node:10.15.0-stretch
  31. stage: build
  32. only:
  33. - master
  34. script:
  35. - npm install
  36. # Build App
  37. - npm run build-dev
  38. artifacts:
  39. paths:
  40. # Build folder
  41. - dist/
  42. expire_in: 1 hour
  43.  
  44. deploy stage:
  45. image: python:latest
  46. stage: deploy
  47. only:
  48. - master
  49. script:
  50. - pip install awscli
  51. - aws s3 sync ./dist s3://YOUR_DEV_BUCKET_NAME
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement