forked from infra/ansible
25 lines
517 B
Django/Jinja
25 lines
517 B
Django/Jinja
---
|
|
apiVersion: build.openshift.io/v1
|
|
kind: BuildConfig
|
|
metadata:
|
|
labels:
|
|
build: docstranslation-build
|
|
name: docstranslation-build
|
|
spec:
|
|
successfulBuildsHistoryLimit: 2
|
|
failedBuildsHistoryLimit: 1
|
|
runPolicy: Serial
|
|
source:
|
|
git:
|
|
uri: "https://forge.fedoraproject.org/docs/translations-scripts.git"
|
|
{% if env == 'staging' %}
|
|
ref: staging
|
|
{% else %}
|
|
ref: main
|
|
{% endif %}
|
|
strategy:
|
|
type: Docker
|
|
output:
|
|
to:
|
|
kind: ImageStreamTag
|
|
name: builder:latest
|