25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.drone.yml 1.5 KiB

4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
4 년 전
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. GIT_HOST:
  15. from_secret: GIT_HOST
  16. GIT_PORT:
  17. from_secret: GIT_PORT
  18. GIT_REPOSITORY:
  19. from_secret: GIT_REPOSITORY
  20. commands:
  21. - eval $(ssh-agent)
  22. - mkdir $HOME/.ssh && echo "$KEY" > $HOME/.ssh/id_rsa && chmod 600 $HOME/.ssh/id_rsa && echo "$PUBLIC" > $HOME/.ssh/id_rsa.pub
  23. - ssh-add $HOME/.ssh/id_rsa
  24. - ssh-keyscan -p $GIT_PORT -H $GIT_HOST > $HOME/.ssh/known_hosts
  25. - git clone $GIT_REPOSITORY ./
  26. - git checkout $DRONE_BRANCH
  27. - name: build_php_base
  28. image: plugins/docker
  29. settings:
  30. dockerfile: docker/php/Dockerfile
  31. registry: registry:5000
  32. repo: registry:5000/arbitry_php_base
  33. tags: ${DRONE_BRANCH//\\//-}
  34. insecure: true
  35. build_args:
  36. - PHP_VERSION=7.4.4
  37. depends_on:
  38. - clone
  39. trigger:
  40. status:
  41. - success
  42. - name: build_php_fpm
  43. image: plugins/docker
  44. settings:
  45. dockerfile: docker/php-fpm/Dockerfile
  46. registry: registry:5000
  47. repo: registry:5000/arbitry_php_fpm
  48. tags: ${DRONE_BRANCH//\\//-}
  49. insecure: true
  50. build_args:
  51. - BUILD_IMAGE=registry:5000/arbitry_php_base:${DRONE_BRANCH//\\//-}
  52. - PHP_VERSION=7.4.4
  53. depends_on:
  54. - build_php_base
  55. trigger:
  56. status:
  57. - success