NEXT craftinamerica.org. Base setup for headless wordpress https://www.craftinamerica.org
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

.drone.yml 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ---
  2. ################
  3. # Build & Test #
  4. ################
  5. kind: pipeline
  6. name: run_tests
  7. steps:
  8. # Test the vue theme
  9. - name: test
  10. image: node
  11. commands:
  12. - pwd
  13. - cd ./vue-theme
  14. - npm install
  15. - npm test
  16. volumes:
  17. # Link node_modules cache from host filesystem into container at the expected location
  18. - name: node_cache
  19. path: /drone/src/vue-theme/node_modules
  20. - name: build
  21. image: node
  22. commands:
  23. - cd ./vue-theme
  24. - npm run build
  25. volumes:
  26. # Link node_modules cache from host filesystem into container at the expected location
  27. - name: node_cache
  28. path: /drone/src/vue-theme/node_modules
  29. volumes:
  30. - name: node_cache
  31. host:
  32. path: /tmp/cache/drone/node_modules
  33. ---
  34. ########################
  35. # Deploy to Production #
  36. ########################
  37. kind: pipeline
  38. name: deploy
  39. depends_on:
  40. # Must run after the first pipeline
  41. - run_tests
  42. trigger:
  43. status:
  44. # Only runs if the first pipeline was fully successful
  45. - success
  46. steps:
  47. # Test the vue theme
  48. - name: test
  49. image: node
  50. commands:
  51. - pwd
  52. - ls ./vue-theme/node_modules
  53. volumes:
  54. # Link node_modules cache from host filesystem into container at the expected location
  55. - name: node_cache
  56. path: /drone/src/vue-theme/node_modules
  57. volumes:
  58. - name: node_cache
  59. host:
  60. path: /tmp/cache/drone/node_modules