cluster.fun/tekton/tasks/pr-status.yaml

28 lines
701 B
YAML
Raw Permalink Normal View History

2020-04-25 18:18:33 +00:00
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: pr-status
namespace: tekton-pipelines
spec:
params:
- name: REPO
description: The name of the repo
- name: SHA
description: The git SHA to update the status of
- name: STATE
description: The state to set the status to (pending, success, error, failure or warning)
default: "pending"
steps:
- name: pr-status-update
2020-06-07 13:18:58 +00:00
image: docker.cluster.fun/averagemarcus/gitea-pr-status:latest
2020-04-25 18:18:33 +00:00
env:
- name: ACCESS_TOKEN
valueFrom:
secretKeyRef:
name: gitea-access-token
key: access-token
args:
2020-06-07 13:18:58 +00:00
- "AverageMarcus/$(params.REPO)"
2020-04-25 18:18:33 +00:00
- "$(params.SHA)"
- "$(params.STATE)"