Asknot: Try building the container directly in openshift instead of using quay.io build

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2018-12-18 22:33:20 +01:00
parent c95ded92e8
commit b9976f40d8
3 changed files with 29 additions and 13 deletions

View file

@ -20,6 +20,16 @@
template: imagestream.yml
objectname: imagestream.yml
- role: openshift/object
app: asknot
template: buildconfig.yml
objectname: buildconfig.yml
- role: openshift/start-build
app: asknot
buildname: asknot-build
objectname: asknot-build
- role: openshift/object
app: asknot
file: service.yml

View file

@ -0,0 +1,19 @@
apiVersion: v1
kind: BuildConfig
metadata:
name: asknot-build
labels:
environment: "asknot"
spec:
source:
git:
uri: https://github.com/fedora-infra/asknot-ng.git
ref: "os-staging"
strategy:
type: Docker
triggers:
- type: ImageChange
output:
to:
kind: ImageStreamTag
name: asknot:latest

View file

@ -2,16 +2,3 @@ apiVersion: v1
kind: ImageStream
metadata:
name: "asknot"
spec:
tags:
- name: latest
importPolicy:
scheduled: true
from:
kind: DockerImage
{% if env == 'staging' %}
name: quay.io/fedora-infra/asknot:os-staging
{% else %}
# This is 'prod' tag is maintained by hand.
name: quay.io/fedora-infra/asknot:os-prod
{% endif %}