.drone.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. kind: pipeline
  2. type: kubernetes
  3. name: diagnosis
  4. steps:
  5. - name: backend
  6. image: maven:3-jdk-8
  7. commands:
  8. - mvn -DskipTests=true clean package
  9. - name: docker-backend
  10. image: plugins/docker
  11. settings:
  12. username: 470454315
  13. password: q4228306**
  14. repo: feick/diagnosis
  15. tags: latest
  16. commands: []
  17. - name: docker-frontend
  18. image: plugins/docker
  19. settings:
  20. username: 470454315
  21. password: q4228306**
  22. repo: feick/diagnosis-frontend
  23. tags: latest
  24. commands: []
  25. #- name: deploy
  26. # image: quay.io/honestbee/drone-kubernetes
  27. # kubernetes_server: https://www.yaoxiangedu.com:8443/k8s/clusters/c-dbvnj
  28. # kubernetes_token: eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZXYiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlY3JldC5uYW1lIjoiZGVmYXVsdC10b2tlbi01eDlzayIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQudWlkIjoiNzFmNzVmMmMtYTRhZS00NzAwLTg5MzQtOTQwOWQwM2YzNTJkIiwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50OmRldjpkZWZhdWx0In0.G7Na6oI9X3m6zAzn41u5lmsCvDL6GOynjHkS9g4G92IQLpOYnbofYYu3nRfZl8ooEbPpl1Z3StP2UP2kc4lrXBPlGP9CgMcPWloPfaskbgGyjNzkgBGzLZwMwT8k4P6DmARRN_RGBrp6IgZmZ13vilrlle_EoPaIvGPDn0jI7r_4oIiBjcgdjYSVJ5zujow2r3gETxHjWJw4Uao-u9tHit23TMxNXh-02Jz5N56rv0QaidESC_bvXji6uLlBL9saO60FumNa3E8dYhi-G552GOyoGZMDzpfpC8Geuxus1S3sgl4JiRnx0QDwRiS2N3kvmzhVbsePGUXUr8mrtFvgag
  29. # namespace: dev
  30. # deployment: diagnosis1
  31. # repo: feick/diagnosis
  32. #container: my-container
  33. #tag: mytag