Added PR number to tekton pipelines

This commit is contained in:
2020-05-02 21:45:10 +01:00
parent 5da3b51817
commit 15f7c37f22
4 changed files with 20 additions and 0 deletions

View File

@@ -17,3 +17,13 @@ spec:
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