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.

53 lines
1.2 KiB

  1. apiVersion: template.openshift.io/v1
  2. kind: Template
  3. metadata:
  4. name: ${TEMPLATE_NAME}
  5. objects:
  6. - apiVersion: build.openshift.io/v1
  7. kind: BuildConfig
  8. metadata:
  9. labels:
  10. build: ${APPLICATION_NAME}
  11. template: ${TEMPLATE_NAME}
  12. name: ${APPLICATION_NAME}
  13. spec:
  14. failedBuildsHistoryLimit: 5
  15. nodeSelector: null
  16. output:
  17. to:
  18. kind: ImageStreamTag
  19. name: ${APPLICATION_NAME}:latest
  20. postCommit: {}
  21. resources: {}
  22. runPolicy: Serial
  23. source:
  24. binary: {}
  25. type: Binary
  26. strategy:
  27. sourceStrategy:
  28. from:
  29. kind: ImageStreamTag
  30. name: dotnet:3.1
  31. namespace: openshift
  32. type: Source
  33. successfulBuildsHistoryLimit: 5
  34. triggers: []
  35. - apiVersion: image.openshift.io/v1
  36. kind: ImageStream
  37. metadata:
  38. labels:
  39. build: ${APPLICATION_NAME}
  40. template: ${TEMPLATE_NAME}
  41. name: ${APPLICATION_NAME}
  42. spec:
  43. lookupPolicy:
  44. local: false
  45. parameters:
  46. - description: The name for the application.
  47. displayName: Application Name
  48. name: APPLICATION_NAME
  49. required: true
  50. - description: The template name.
  51. displayName: Template Name
  52. name: TEMPLATE_NAME
  53. required: true
  54. value: app-build-template