Rebuild Maubot when the Fedora image changes

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2023-10-11 07:23:13 +02:00
parent f5c3fa8410
commit 04f95e1969
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 27 additions and 11 deletions

View file

@ -6,3 +6,22 @@ items:
kind: ImageStream
metadata:
name: maubot
# The Fedora image
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: fedora
labels:
build: maubot-build
spec:
lookupPolicy:
local: false
tags:
- name: "38"
from:
kind: DockerImage
name: quay.io/fedora/fedora:38
importPolicy:
scheduled: true
referencePolicy:
type: Source

View file

@ -32,19 +32,16 @@ spec:
type: Docker
dockerStrategy:
noCache: false
# from:
# kind: ImageStreamTag
# name: fedora:38
from:
kind: ImageStreamTag
name: fedora:38
output:
to:
kind: ImageStreamTag
name: maubot:latest
triggers:
- type: ConfigChange
- type: ImageChange
- type: GitHub
github:
secret: "{{ (env == 'production')|ternary(maubot_prod_github_secret, maubot_stg_github_secret) }}"
- type: Generic
generic:
secret: "{{ (env == 'production')|ternary(maubot_prod_github_secret, maubot_stg_github_secret) }}"
- type: ConfigChange
- type: ImageChange
- type: Generic
generic:
secret: "{{ (env == 'production')|ternary(maubot_prod_github_secret, maubot_stg_github_secret) }}"