ansible/roles/openshift-apps/nuancier/templates/buildconfig.yml

31 lines
572 B
YAML
Raw Normal View History

apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
name: nuancier-build
labels:
environment: "nuancier"
spec:
output:
to:
kind: ImageStreamTag
name: nuancier:latest
source:
type: Git
git:
uri: https://pagure.io/nuancier.git
{% if env == 'staging' %}
ref: "staging"
{% else %}
ref: "production"
{% endif %}
strategy:
type: Source
sourceStrategy:
from:
kind: ImageStreamTag
namespace: openshift
name: python:2.7
triggers:
- type: ConfigChange
- type: ImageChange