You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.drone.yml 1.4 KiB

5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
5 anni fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. kind: pipeline
  2. type: docker
  3. name: build
  4. clone:
  5. disable: true
  6. steps:
  7. - name: clone
  8. image: docker:git
  9. environment:
  10. KEY:
  11. from_secret: DEPLOY_KEY
  12. PUBLIC:
  13. from_secret: DEPLOY_KEY_PUBLIC
  14. GIT_IP:
  15. from_secret: GIT_IP
  16. GIT_HOST:
  17. from_secret: GIT_HOST
  18. GIT_SSH_PORT:
  19. from_secret: GIT_SSH_PORT
  20. GIT_REPOSITORY:
  21. from_secret: GIT_REPOSITORY
  22. commands:
  23. - eval $(ssh-agent)
  24. - mkdir $HOME/.ssh && echo "$KEY" > $HOME/.ssh/id_rsa && chmod 600 $HOME/.ssh/id_rsa && echo "$PUBLIC" > $HOME/.ssh/id_rsa.pub
  25. - ssh-add $HOME/.ssh/id_rsa
  26. - git clone $GIT_REPOSITORY ./
  27. - git checkout $DRONE_COMMIT
  28. - name: build_php_base
  29. image: plugins/docker
  30. settings:
  31. dockerfile: docker/php/Dockerfile
  32. registry: registry:5000
  33. repo: registry:5000/arbitry_php_base
  34. insecure: true
  35. build_args:
  36. - PHP_VERSION=7.4.4
  37. depends_on:
  38. - clone
  39. trigger:
  40. status:
  41. - success
  42. - name: build_php_fpm
  43. image: plugins/docker
  44. settings:
  45. dockerfile: docker/php-fpm/Dockerfile
  46. registry: registry:5000
  47. repo: registry:5000/arbitry_php_fpm
  48. insecure: true
  49. build_args:
  50. - BUILD_IMAGE=registry:5000/arbitry_php_base
  51. - PHP_VERSION=7.4.4
  52. depends_on:
  53. - build_php_base
  54. trigger:
  55. status:
  56. - success