25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

52 satır
1.2 KiB

  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. - git clone ssh://gitea.local:2222/Torrion/arbitry.git ./
  19. - git checkout $DRONE_COMMIT
  20. - name: build_php_base
  21. image: plugins/docker
  22. settings:
  23. dockerfile: docker/php/Dockerfile
  24. registry: registry:5000
  25. repo: registry:5000/arbitry_php_base
  26. insecure: true
  27. build_args:
  28. - PHP_VERSION=7.4.4
  29. depends_on:
  30. - clone
  31. trigger:
  32. status:
  33. - success
  34. - name: build_php_fpm
  35. image: plugins/docker
  36. settings:
  37. dockerfile: docker/php-fpm/Dockerfile
  38. registry: registry:5000
  39. repo: registry:5000/arbitry_php_fpm
  40. insecure: true
  41. build_args:
  42. - BUILD_IMAGE=registry:5000/arbitry_php_base
  43. - PHP_VERSION=7.4.4
  44. depends_on:
  45. - build_php_base
  46. trigger:
  47. status:
  48. - success