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

View File

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