ansible/roles/openshift-apps/nuancier/templates/buildconfig.yml
Kevin Fenzi e614b31457 openshift / various apps: update BuildConfig to use build.openshift.io/v1
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-02-13 11:46:39 -08:00

30 lines
572 B
YAML

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