apiVersion: v1
kind: Template
metadata:
  name: adei-build
  labels:
    app: adei
  annotations:
    descriptions: "ADEI Build"
objects:
  - kind: ImageStream
    apiVersion: v1
    metadata:
      name: adei
  - kind: "BuildConfig"
    apiVersion: "v1"
    metadata:
      name: "adei"
    spec:
#      runPolicy: "Serial"
      successfulBuildsHistoryLimit: "{{ adei_pod_history_limit }}"
      failedBuildsHistoryLimit: "{{ adei_pod_history_limit }}"
      triggers: 
        - type: "ConfigChange"
      source: 
        type: "Git"
        git:
          uri: "http://adei.info/git/csa/devops/docker/adei.git"
        contextDir: "adei"
      strategy: 
        dockerStrategy:
          dockerfilePath: Dockerfile
      output: 
        to:
          kind: "ImageStreamTag"
          name: "adei:latest"
        imageLabels:
        - name: "vendor"
          value: "KIT"
        - name: "author"
          value: "Suren A. Chilingaryan"
        - name: "authoritative-source-url"
          value: "adei.info"
      
