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

View File

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