Page MenuHomePhabricator
Paste P8237

Blubber built on Tekton + minikube
ActivePublic

Authored by dduvall on Mar 19 2019, 10:30 PM.
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: blubber-master-branch
spec:
type: git
params:
- name: revision
value: master
- name: url
value: https://gerrit.wikimedia.org/r/blubber
---
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: build-go-project-via-make
spec:
inputs:
resources:
- name: src
type: git
steps:
- name: build-via-make
image: golang:1.11
command:
- sh
args:
- "-c"
- "cd src && go build ./cmd/blubber"
---
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
name: build-go-project-via-make-pipeline
spec:
resources:
- name: source-repo
type: git
tasks:
- name: build-via-make
taskRef:
name: build-go-project-via-make
resources:
inputs:
- name: src
resource: source-repo
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
name: build-blubber-1
spec:
pipelineRef:
name: build-go-project-via-make-pipeline
trigger:
type: manual
resources:
- name: source-repo
resourceRef:
name: blubber-master-branch

Event Timeline

dduvall edited the content of this paste. (Show Details)Mar 19 2019, 10:30 PM
dduvall changed the title of this paste from untitled to Blubber built on Tekton + minikube.