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 kind: ImageStream
metadata: metadata:
name: maubot 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 type: Docker
dockerStrategy: dockerStrategy:
noCache: false noCache: false
# from: from:
# kind: ImageStreamTag kind: ImageStreamTag
# name: fedora:38 name: fedora:38
output: output:
to: to:
kind: ImageStreamTag kind: ImageStreamTag
name: maubot:latest name: maubot:latest
triggers: triggers:
- type: ConfigChange - type: ConfigChange
- type: ImageChange - type: ImageChange
- type: GitHub - type: Generic
github: generic:
secret: "{{ (env == 'production')|ternary(maubot_prod_github_secret, maubot_stg_github_secret) }}" 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) }}"