Skip to content

Commit

Permalink
Add TektonCD Triggers to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
khrm committed Nov 13, 2019
1 parent 490d63b commit 0c1151e
Show file tree
Hide file tree
Showing 6 changed files with 207 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
tag_specification:
name: '4.2'
namespace: ocp
promotion:
namespace: openshift
name: tektoncd-next
base_images:
base:
name: '4.2'
namespace: ocp
tag: base
build_root:
project_image:
dockerfile_path: openshift/ci-operator/build-image/Dockerfile
canonical_go_repository: github.com/tektoncd/triggers
binary_build_commands: make install
images:
- dockerfile_path: openshift/ci-operator/knative-images/controller/Dockerfile
from: base
inputs:
bin:
paths:
- destination_dir: .
source_path: /go/bin/.
to: tektoncd-triggers-controller
- dockerfile_path: openshift/ci-operator/knative-images/webhook/Dockerfile
from: base
inputs:
bin:
paths:
- destination_dir: .
source_path: /go/bin/.
to: tektoncd-triggers-webhook
- dockerfile_path: openshift/ci-operator/knative-images/eventlistener/Dockerfile
from: base
inputs:
bin:
paths:
- destination_dir: .
source_path: /go/bin/.
to: tektoncd-triggers-eventlistener
tests:
- as: e2e-aws-ocp-42
commands: "make test-e2e"
openshift_installer_src:
cluster_profile: aws
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
tag_specification:
name: '4.2'
namespace: ocp
promotion:
namespace: openshift
name: tektoncd-v0.8.0
base_images:
base:
name: '4.2'
namespace: ocp
tag: base
build_root:
project_image:
dockerfile_path: openshift/ci-operator/build-image/Dockerfile
canonical_go_repository: github.com/tektoncd/triggers
binary_build_commands: make install
images:
- dockerfile_path: openshift/ci-operator/knative-images/controller/Dockerfile
from: base
inputs:
bin:
paths:
- destination_dir: .
source_path: /go/bin/.
to: tektoncd-triggers-controller
- dockerfile_path: openshift/ci-operator/knative-images/webhook/Dockerfile
from: base
inputs:
bin:
paths:
- destination_dir: .
source_path: /go/bin/.
to: tektoncd-triggers-webhook
- dockerfile_path: openshift/ci-operator/knative-images/eventlistener/Dockerfile
from: base
inputs:
bin:
paths:
- destination_dir: .
source_path: /go/bin/.
to: tektoncd-triggers-eventlistener
tests:
- as: e2e
commands: "make test-e2e"
openshift_installer_src:
cluster_profile: aws
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
postsubmits:
openshift/tektoncd-triggers:
- agent: kubernetes
branches:
- ^release-next$
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
name: branch-ci-openshift-tektoncd-triggers-release-next-images
path_alias: github.com/tektoncd/triggers
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --branch=release-next
- --give-pr-author-access-to-namespace=true
- --org=openshift
- --promote
- --repo=tektoncd-triggers
- --resolver-address=http://ci-operator-configresolver-ci.svc.ci.openshift.org
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=[images]
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: openshift-tektoncd-triggers-release-next.yaml
name: ci-operator-misc-configs
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/sentry-dsn
name: sentry-dsn
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: sentry-dsn
secret:
secretName: sentry-dsn
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
postsubmits:
openshift/tektoncd-pipeline-triggers:
- agent: kubernetes
branches:
- ^master$
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
name: branch-ci-openshift-tektoncd-pipeline-triggers-master-images
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --branch=master
- --give-pr-author-access-to-namespace=true
- --org=openshift
- --promote
- --repo=tektoncd-pipeline-triggers
- --resolver-address=http://ci-operator-configresolver-ci.svc.ci.openshift.org
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=[images]
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: openshift-tektoncd-pipeline-triggers-master.yaml
name: ci-operator-master-configs
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/sentry-dsn
name: sentry-dsn
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: sentry-dsn
secret:
secretName: sentry-dsn
6 changes: 6 additions & 0 deletions core-services/prow/02_config/_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ branch-protection:
protect: false
release-next-ci:
protect: false
tektoncd-triggers:
branches:
release-next:
protect: false
release-next-ci:
protect: false
openshift-s2i:
repos:
s2i-wildfly:
Expand Down
2 changes: 2 additions & 0 deletions core-services/prow/02_config/_plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1814,6 +1814,8 @@ plugins:
- approve
openshift/tektoncd-pipeline:
- approve
openshift/tektoncd-triggers:
- approve
openshift/telemeter:
- approve
openshift/template-service-broker:
Expand Down

0 comments on commit 0c1151e

Please sign in to comment.