mmmmmmmmmmm

This commit is contained in:
2020-03-15 20:56:53 +01:00
parent 37d63842e3
commit 68921748f0
2 changed files with 14 additions and 19 deletions

View File

@@ -31,9 +31,6 @@ rules:
- services
- deployments
- deployments.apps
- destinationrules
- gateways
- virtualservices
verbs:
- list
- watch
@@ -100,7 +97,7 @@ spec:
- name: clone
image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:latest
script: |
CHECKOUT_DIR="$(workspaces.output.path)/$(inputs.params.subdirectory)"
CHECKOUT_DIR="$(workspaces.output.path)"
cleandir() {
# Delete any existing contents of the repo directory if it exists.
#

View File

@@ -9,15 +9,15 @@ metadata:
spec:
params:
- name: gitrevision
value: $(body.pull_request.head.sha)
value: $(body)
- name: gitrepositoryurl
value: $(body.pull_request.head.repo.clone_url)
- name: prurl
value: $(body.pull_request.html_url)
- name: repo
value: $(body.pull_request.base.repo.full_name)
- name: source
value: github
value: $(body)
# - name: prurl
# value: $(body.pull_request.html_url)
# - name: repo
# value: $(body.pull_request.base.repo.full_name)
# - name: source
# value: github
---
kind: PersistentVolumeClaim
apiVersion: v1
@@ -130,13 +130,11 @@ spec:
serviceAccountName: service-acc
triggers:
- name: github
interceptors:
- github:
secretRef:
secretName: github-secret
secretKey: secret
eventTypes:
- pull_request
# interceptors:
# - github:
# eventTypes:
# - pull_request
# - push
bindings:
- name: github-trigger-binding
template: