diff --git a/manifests/github-webhook-setup.yaml b/manifests/github-webhook-setup.yaml index eef5e28..bddc912 100644 --- a/manifests/github-webhook-setup.yaml +++ b/manifests/github-webhook-setup.yaml @@ -88,156 +88,188 @@ spec: - name: GitHubSecretStringKey value: secret - name: ExternalDomain - value: "ingress.llocal.host:31040" + value: "ingress.llocal.host:31040/github" timeout: 1000s serviceAccountName: service-acc - --- -apiVersion: tekton.dev/v1alpha1 -kind: Task +apiVersion: extensions/v1beta1 +kind: Ingress metadata: - name: create-ingress - #namespace: stage-tekton-pipeline + name: github-ingress spec: - volumes: - - name: work - emptyDir: {} - - inputs: - params: - - name: CreateCertificate - description: "Enables/disables the creation of a self-signed certificate for $(inputs.params.ExternalDomain)" - default: "true" - - name: CertificateKeyPassphrase - description: "Phrase that protects private key. This must be provided when the self-signed certificate is created" - - name: CertificateSecretName - description: "Secret name for Ingress certificate. The Secret should not exist if the self-signed certificate creation is enabled" - - name: ExternalDomain - description: "The external domain for the EventListener e.g. `$(inputs.params.EventListenerName).PROXYIP.nip.io`" - - name: Service - description: "The name of the Service used in the Ingress. This will also be the name of the Ingress." - - name: ServicePort - description: "The service port that the ingress is being created on" - - name: ServiceUID - description: "The uid of the service. If set, this creates an owner reference on the service" - default: "" - - steps: - - name: generate-certificate - image: frapsoft/openssl - volumeMounts: - - name: work - mountPath: /var/tmp/work - command: - - sh - args: - - -ce - - | - set -e - cat <