Rebuild Maubot when the Fedora image changes
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
f5c3fa8410
commit
04f95e1969
2 changed files with 27 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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) }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue