Files
fedora-infra_ansible/roles/openshift-apps/bugzilla2fedmsg/templates/buildconfig.yml.j2
2025-01-14 08:37:32 +10:00

31 lines
702 B
Django/Jinja

---
apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
name: bugzilla2fedmsg-build
labels:
environment: "bugzilla2fedmsg"
spec:
source:
type: Git
git:
uri: https://github.com/fedora-infra/bugzilla2fedmsg.git
ref: {{ env }}
strategy:
type: Source
sourceStrategy:
from:
kind: ImageStreamTag
namespace: openshift
name: python:3.9-ubi8
triggers:
- type: ImageChange
- type: ConfigChange
- type: GitHub
github:
secret: "{{ (env == 'production')|ternary(bugzilla2fedmsg_prod_github_secret, bugzilla2fedmsg_stg_github_secret) }}"
output:
to:
kind: ImageStreamTag
name: bugzilla2fedmsg:latest