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.
 
 
 
 

46 lignes
1.1 KiB

  1. kind: pipeline
  2. type: docker
  3. name: build
  4. clone:
  5. disable: true
  6. steps:
  7. - name: clone
  8. image: alpine/git
  9. environment:
  10. KEY:
  11. from_secret: DEPLOY_KEY
  12. PUBLIC:
  13. from_secret: DEPLOY_KEY_PUBLIC
  14. commands:
  15. - mkdir $HOME/.ssh && echo "$KEY" > $HOME/.ssh/id_rsa && chmod 600 $HOME/.ssh/id_rsa && echo "$PUBLIC" > $HOME/.ssh/id_rsa.pub && ssh-agent sh -c "ssh-add $HOME/.ssh/id_rsa && ssh-add -l"
  16. - git clone ssh://git@gitea.torrion-vault.xyz:2222/Torrion/arbitry.git
  17. - git checkout $DRONE_COMMIT
  18. - name: build_php_base
  19. image: plugins/docker
  20. settings:
  21. dockerfile: docker/php/Dockerfile
  22. registry: localhost
  23. repo: arbitry_php_base
  24. dry_run: true
  25. insecure: true
  26. build_args:
  27. PHP_VERSION: 7.4.4
  28. - name: build_php_fpm
  29. image: plugins/docker
  30. settings:
  31. dockerfile: docker/php-fpm/Dockerfile
  32. registry: localhost
  33. repo: arbitry_php_fpm
  34. dry_run: true
  35. insecure: true
  36. build_args:
  37. PHP_VERSION: 7.4.4
  38. BUILD_IMAGE: arbitry_php_base
  39. depends_on:
  40. - build_php_base
  41. trigger:
  42. status:
  43. - success