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.

43 lines
1015 B

  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. parameters:
  36. - description: The name for the application.
  37. displayName: Application Name
  38. name: APPLICATION_NAME
  39. required: true
  40. - description: The template name.
  41. displayName: Template Name
  42. name: TEMPLATE_NAME
  43. required: true
  44. value: webapp-build-config-template