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
|
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
|
||||||
|
|
|
@ -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) }}"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue