Skip to content

Commit

Permalink
Merge pull request #5122 from stevekuznetsov/skuznets/config-change-t…
Browse files Browse the repository at this point in the history
…rigger-postsubmit

Add a job to trigger images postsubmits on config changes
  • Loading branch information
openshift-merge-robot authored Sep 20, 2019
2 parents a2dbf58 + fe1085e commit ffde989
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ core:
jobs:
docker pull registry.svc.ci.openshift.org/ci/ci-operator-prowgen:latest
docker run -it -v "${CURDIR}/ci-operator:/ci-operator" registry.svc.ci.openshift.org/ci/ci-operator-prowgen:latest --from-dir /ci-operator/config --to-dir /ci-operator/jobs
docker pull registry.svc.ci.openshift.org/ci/determinize-prow-jobs:latest
docker run -it -v "${CURDIR}/ci-operator/jobs:/ci-operator/jobs" registry.svc.ci.openshift.org/ci/determinize-prow-jobs:latest --prow-jobs-dir /ci-operator/jobs

# LEGACY TARGETS
# You should not need to add new targets here.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
postsubmits:
openshift/release:
- agent: kubernetes
branches:
- ^master$
decorate: true
name: branch-ci-openshift-release-master-config-change-trigger
spec:
containers:
- args:
- --candidate-path=.
- --token=/etc/github/oauth
- --github-endpoint=http://ghproxy
- --github-endpoint=https://api.github.com
- --github-graphql-endpoint=http://ghproxy/graphql
- --github-graphql-endpoint=https://api.github.com/graphql
- --dry-run=false
command:
- config-change-trigger
image: registry.svc.ci.openshift.org/ci/config-change-trigger:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/github
name: token
readOnly: true
serviceAccountName: trigger
volumes:
- name: token
secret:
secretName: github-credentials-openshift-ci-robot
- agent: kubernetes
branches:
- ^master$
Expand Down

0 comments on commit ffde989

Please sign in to comment.