2020-04-25 18:18:33 +00:00
|
|
|
apiVersion: tekton.dev/v1beta1
|
|
|
|
kind: Task
|
|
|
|
metadata:
|
|
|
|
name: make
|
|
|
|
namespace: tekton-pipelines
|
|
|
|
spec:
|
|
|
|
params:
|
|
|
|
- name: TARGET
|
|
|
|
description: The make target to run
|
|
|
|
resources:
|
|
|
|
inputs:
|
|
|
|
- name: src
|
|
|
|
type: git
|
|
|
|
steps:
|
|
|
|
- name: make
|
|
|
|
workingDir: /workspace/src
|
2020-05-02 20:17:00 +00:00
|
|
|
image: docker.cluster.fun/averagemarcus/ci-builder:latest
|
2020-04-25 18:18:33 +00:00
|
|
|
script: |
|
|
|
|
make --dry-run -t $(params.TARGET) &> /dev/null && make $(params.TARGET) || echo "No '$(params.TARGET)' target found, skipping"
|