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.3 KiB

4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
4 anni fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. commands:
  15. - eval $(ssh-agent)
  16. - mkdir $HOME/.ssh && echo "$KEY" > $HOME/.ssh/id_rsa && chmod 600 $HOME/.ssh/id_rsa && echo "$PUBLIC" > $HOME/.ssh/id_rsa.pub
  17. - ssh-add $HOME/.ssh/id_rsa
  18. - ssh-keyscan -p 2222 -H gitea.local > $HOME/.ssh/known_hosts
  19. - ssh -T git@gitea.local -p 2222
  20. - git clone ssh://gitea.local:2222/Torrion/arbitry.git ./
  21. - git checkout $DRONE_COMMIT
  22. - name: build_php_base
  23. image: plugins/docker
  24. settings:
  25. dockerfile: docker/php/Dockerfile
  26. registry: registry:5000
  27. repo: registry:5000/arbitry_php_base
  28. insecure: true
  29. build_args:
  30. - PHP_VERSION=7.4.4
  31. depends_on:
  32. - clone
  33. trigger:
  34. status:
  35. - success
  36. - name: build_php_fpm
  37. image: plugins/docker
  38. settings:
  39. dockerfile: docker/php-fpm/Dockerfile
  40. registry: registry:5000
  41. repo: registry:5000/arbitry_php_fpm
  42. insecure: true
  43. build_args:
  44. - BUILD_IMAGE=registry:5000/arbitry_php_base
  45. - PHP_VERSION=7.4.4
  46. depends_on:
  47. - build_php_base
  48. trigger:
  49. status:
  50. - success