apiVersion: v1
kind: BuildConfig
metadata:
  name: silverblue-build
  labels:
    environment: "silverblue"
spec:
  output:
    to:
      kind: ImageStreamTag
      name: silverblue:latest
  source:
    type: Git
    git:
      uri: https://github.com/fedora-silverblue/silverblue-site.git
  strategy:
    type: Source
    sourceStrategy:
      from:
        kind: ImageStreamTag
        name: s2i-golang:latest
  triggers:
{% if silverblue_github_secret is defined %}
  - type: GitHub
    github:
      secret: "{{ silverblue_github_secret }}"
{% endif %}
  - type: ConfigChange
  - type: ImageChange
