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:
parent
c95ded92e8
commit
b9976f40d8
3 changed files with 29 additions and 13 deletions
|
@ -20,6 +20,16 @@
|
||||||
template: imagestream.yml
|
template: imagestream.yml
|
||||||
objectname: 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
|
- role: openshift/object
|
||||||
app: asknot
|
app: asknot
|
||||||
file: service.yml
|
file: service.yml
|
||||||
|
|
19
roles/openshift-apps/asknot/files/buildconfig.yml
Normal file
19
roles/openshift-apps/asknot/files/buildconfig.yml
Normal 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
|
|
@ -2,16 +2,3 @@ apiVersion: v1
|
||||||
kind: ImageStream
|
kind: ImageStream
|
||||||
metadata:
|
metadata:
|
||||||
name: "asknot"
|
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 %}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue