From 1254c4ad89fb274e446ac34693864d8d59fbc7a4 Mon Sep 17 00:00:00 2001 From: mdr0id Date: Wed, 17 Jun 2020 12:05:10 -0700 Subject: [PATCH] add pipeline template --- .../zcash-android-pr-pipeline-template.yml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 ci/tekton/zcash-android-pr-pipeline-template.yml diff --git a/ci/tekton/zcash-android-pr-pipeline-template.yml b/ci/tekton/zcash-android-pr-pipeline-template.yml new file mode 100644 index 00000000..773bd022 --- /dev/null +++ b/ci/tekton/zcash-android-pr-pipeline-template.yml @@ -0,0 +1,57 @@ +--- +apiVersion: triggers.tekton.dev/v1alpha1 +kind: TriggerTemplate +metadata: + name: zcash-android-pr-pipeline-template +spec: + params: + - name: gitHubProject + description: Github project name + - name: gitRepositoryURL + description: Git repo url + - name: gitCommit + description: Git commit to build from + default: master + - name: short_sha + description: Short sha from git commit used to identify binaries + - name: statusURL + description: Tekton dashboard URL for the resource status + resourcetemplates: + - apiVersion: tekton.dev/v1beta1 + kind: PipelineRun + metadata: + generateName: zcash-android-pr-pipeline- + spec: + serviceAccountName: ecc-tekton + pipelineRef: + name: zcash-android-pr-pipeline + resources: + - name: source + resourceSpec: + type: git + params: + - name: revision + value: $(params.gitCommit) + - name: url + value: $(params.gitRepositoryURL) + - name: zcash-android-builder-image + resourceSpec: + type: image + params: + - name: url + value: electriccoinco/zcash-android-builder + #Is this the repo resource + - name: zcash-android-wallet-sdk + resourceRef: + name: zcash-android-wallet-sdk + params: + - name: shortSha + value: $(params.short_sha) + - name: gitRepositoryURL + value: $(params.gitRepositoryURL) + - name: gitCommit + value: $(params.gitCommit) + - name: gitHubProject + value: $(params.gitHubProject) + - name: statusURL + value: $(params.statusURL) \ No newline at end of file