30 lines
718 B
YAML
30 lines
718 B
YAML
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
|
|
image: docker.cluster.fun/averagemarcus/ci-builder:latest
|
|
script: |
|
|
make --dry-run -t $(params.TARGET) &> /dev/null && make $(params.TARGET) || echo "No '$(params.TARGET)' target found, skipping"
|
|
env:
|
|
- name: REPO
|
|
value: $(params.REPO)
|
|
- name: PR_ID
|
|
value: $(params.PR_ID)
|
|
- name: ACCESS_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: gitea-access-token
|
|
key: access-token
|