Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

.drone.yml 1.3 KiB

4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
4 år sedan
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 && ssh-keyscan -p 2222 -t rsa gitea.torrion-vault.xyz >> $HOME/.ssh/known_hosts
  18. - ssh -p 2222 -tt gitea.torrion-vault.xyz << 'EOT'
  19. - git clone http://gitea.local:3000/Torrion/arbitry.git
  20. - git checkout $DRONE_COMMIT
  21. - name: build_php_base
  22. image: plugins/docker
  23. settings:
  24. dockerfile: docker/php/Dockerfile
  25. registry: localhost
  26. repo: arbitry_php_base
  27. dry_run: true
  28. insecure: true
  29. build_args:
  30. PHP_VERSION: 7.4.4
  31. - name: build_php_fpm
  32. image: plugins/docker
  33. settings:
  34. dockerfile: docker/php-fpm/Dockerfile
  35. registry: localhost
  36. repo: arbitry_php_fpm
  37. dry_run: true
  38. insecure: true
  39. build_args:
  40. PHP_VERSION: 7.4.4
  41. BUILD_IMAGE: arbitry_php_base
  42. depends_on:
  43. - build_php_base
  44. trigger:
  45. status:
  46. - success