您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

48 行
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 && 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. - 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