Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

.drone.yml 2.3 KiB

il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. kind: pipeline
  2. type: docker
  3. name: build
  4. clone:
  5. disable: true
  6. workspace:
  7. path: /drone/src
  8. steps:
  9. - name: restore_cache
  10. image: drillster/drone-volume-cache
  11. volumes:
  12. - name: cache
  13. path: /tmp/drone-cache
  14. settings:
  15. restore: true
  16. mount:
  17. - /drone/docker
  18. - name: clone
  19. image: docker:git
  20. depends_on:
  21. - restore_cache
  22. environment:
  23. KEY:
  24. from_secret: DEPLOY_KEY
  25. PUBLIC:
  26. from_secret: DEPLOY_KEY_PUBLIC
  27. GIT_HOST:
  28. from_secret: GIT_HOST
  29. GIT_PORT:
  30. from_secret: GIT_PORT
  31. GIT_REPOSITORY:
  32. from_secret: GIT_REPOSITORY
  33. commands:
  34. - eval $(ssh-agent)
  35. - mkdir $HOME/.ssh && echo "$KEY" > $HOME/.ssh/id_rsa && chmod 600 $HOME/.ssh/id_rsa && echo "$PUBLIC" > $HOME/.ssh/id_rsa.pub
  36. - ssh-add $HOME/.ssh/id_rsa
  37. - ssh-keyscan -p $GIT_PORT -H $GIT_HOST > $HOME/.ssh/known_hosts
  38. - git clone $GIT_REPOSITORY arbitry
  39. - cd arbitry && git checkout $DRONE_BRANCH && rm -rf .git
  40. - name: build_php_base
  41. image: plugins/docker
  42. privileged: true
  43. settings:
  44. #storage_driver: overlay2
  45. storage_path: /drone/docker
  46. use_cache: true
  47. dockerfile: arbitry/docker/php/Dockerfile
  48. context: arbitry
  49. registry: registry:5000
  50. repo: registry:5000/arbitry_php_base
  51. tags: ${DRONE_BRANCH//\\//-}
  52. insecure: true
  53. build_args:
  54. - PHP_VERSION=7.4.4
  55. depends_on:
  56. - clone
  57. trigger:
  58. status:
  59. - success
  60. - name: build_php_fpm
  61. image: plugins/docker
  62. privileged: true
  63. settings:
  64. #storage_driver: overlay2
  65. storage_path: /drone/docker
  66. use_cache: true
  67. dockerfile: arbitry/docker/php-fpm/Dockerfile
  68. registry: registry:5000
  69. repo: registry:5000/arbitry_php_fpm
  70. tags: ${DRONE_BRANCH//\\//-}
  71. insecure: true
  72. build_args:
  73. - BUILD_IMAGE=registry:5000/arbitry_php_base:${DRONE_BRANCH//\\//-}
  74. - PHP_VERSION=7.4.4
  75. depends_on:
  76. - build_php_base
  77. trigger:
  78. status:
  79. - success
  80. - name: rebuild_cache
  81. image: drillster/drone-volume-cache
  82. depends_on:
  83. - build_php_fpm
  84. volumes:
  85. - name: cache
  86. path: /tmp/drone-cache
  87. settings:
  88. rebuild: true
  89. mount:
  90. - /drone/docker