Skip to content

Instantly share code, notes, and snippets.

@warroyo
Last active July 28, 2023 09:54
Show Gist options
  • Save warroyo/b3284471d77fc06b57164aef73ee9920 to your computer and use it in GitHub Desktop.
Save warroyo/b3284471d77fc06b57164aef73ee9920 to your computer and use it in GitHub Desktop.
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
annotations:
apps.tanzu.vmware.com/pipeline: test
labels:
apps.tanzu.vmware.com/custom-test: 'true'
name: go-tekton-test
namespace: tap-workload
spec:
params:
- name: source-url
type: string
- name: source-revision
type: string
tasks:
- name: test
params:
- name: source-url
value: $(params.source-url)
- name: source-revision
value: $(params.source-revision)
taskSpec:
metadata: {}
params:
- name: source-url
type: string
- name: source-revision
type: string
spec: null
steps:
- image: gradle
name: test
resources: {}
script: |-
cd `mktemp -d`
wget -qO- $(params.source-url) | tar xvz -m
#some test here
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment