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.

преди 4 години
преди 4 години
преди 4 години
преди 4 години
преди 4 години
преди 4 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 -t rsa gitea.torrion-vault.xyz >> $HOME/.ssh/known_hosts
  18. - git clone https://gitea.torrion-vault.xyz/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: localhost
  25. repo: arbitry_php_base
  26. dry_run: true
  27. insecure: true
  28. build_args:
  29. PHP_VERSION: 7.4.4
  30. - name: build_php_fpm
  31. image: plugins/docker
  32. settings:
  33. dockerfile: docker/php-fpm/Dockerfile
  34. registry: localhost
  35. repo: arbitry_php_fpm
  36. dry_run: true
  37. insecure: true
  38. build_args:
  39. PHP_VERSION: 7.4.4
  40. BUILD_IMAGE: arbitry_php_base
  41. depends_on:
  42. - build_php_base
  43. trigger:
  44. status:
  45. - success