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.

.drone.yml 1.4 KiB

4 vuotta sitten
4 vuotta sitten
4 vuotta sitten
4 vuotta sitten
4 vuotta sitten
4 vuotta sitten
4 vuotta sitten
4 vuotta sitten
4 vuotta sitten
4 vuotta sitten
4 vuotta sitten
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 -H 104.248.32.133 >> $HOME/.ssh/known_hosts && ssh-keyscan -p 2222 -H gitea.torrion-vault.xyz >> $HOME/.ssh/known_hosts
  18. - git clone ssh://git@gitea.torrion-vault.xyz:2222/Torrion/arbitry.git
  19. - cd arbitry && 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. commands:
  31. - ls -la
  32. depends_on:
  33. - clone
  34. trigger:
  35. status:
  36. - success
  37. - name: build_php_fpm
  38. image: plugins/docker
  39. settings:
  40. dockerfile: docker/php-fpm/Dockerfile
  41. registry: localhost
  42. repo: arbitry_php_fpm
  43. dry_run: true
  44. insecure: true
  45. build_args:
  46. PHP_VERSION: 7.4.4
  47. BUILD_IMAGE: arbitry_php_base
  48. depends_on:
  49. - build_php_base
  50. trigger:
  51. status:
  52. - success