ansible/roles/openshift-apps/mote/templates/buildconfig.yml.j2
Ryan Lerch aeb540999e mote - rename yml templates to .j2
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-14 08:37:31 +10:00

34 lines
664 B
Django/Jinja

---
apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
app: mote
name: mote
spec:
failedBuildsHistoryLimit: 5
output:
to:
kind: ImageStreamTag
name: mote:latest
runPolicy: Serial
source:
git:
{% if env == 'staging' %}
ref: main
{% else %}
ref: main
{% endif %}
uri: https://github.com/fedora-infra/mote.git
type: Git
strategy:
type: Docker
successfulBuildsHistoryLimit: 5
triggers:
{% if mote_stg_github_secret is defined and env == 'staging' %}
- type: GitHub
github:
secret: "{{ mote_stg_github_secret }}"
{% endif %}
- type: ConfigChange
- type: ImageChange