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.
 
 
 
 

54 lignes
1.3 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. - ssh-keyscan -H gitea.local -p 2222
  19. - ssh -T git@gitea.local -p 2222
  20. - git clone ssh://gitea.local/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