Fixed PR CI jobs

This commit is contained in:
Marcus Noble 2020-06-07 14:18:58 +01:00
parent 7a4b1c96bc
commit d42758f54c
2 changed files with 16 additions and 2 deletions

View File

@ -39,6 +39,12 @@ spec:
params:
- name: TARGET
value: "test"
- name: REPO
value: $(params.projectname)
- name: PR_ID
value: $(params.prid)
- name: SHA
value: $(params.gitrevision)
resources:
inputs:
- name: src
@ -55,6 +61,12 @@ spec:
params:
- name: TARGET
value: "build"
- name: REPO
value: $(params.projectname)
- name: PR_ID
value: $(params.prid)
- name: SHA
value: $(params.gitrevision)
resources:
inputs:
- name: src
@ -75,6 +87,8 @@ spec:
value: $(params.projectname)
- name: PR_ID
value: $(params.prid)
- name: SHA
value: $(params.gitrevision)
resources:
inputs:
- name: src

View File

@ -14,7 +14,7 @@ spec:
default: "pending"
steps:
- name: pr-status-update
image: docker.cluster.fun/averagemarcus/gitea-pr-state:latest
image: docker.cluster.fun/averagemarcus/gitea-pr-status:latest
env:
- name: ACCESS_TOKEN
valueFrom:
@ -22,6 +22,6 @@ spec:
name: gitea-access-token
key: access-token
args:
- "$(params.REPO)"
- "AverageMarcus/$(params.REPO)"
- "$(params.SHA)"
- "$(params.STATE)"