feat(ci): report status to Gitea
This commit is contained in:
parent
b81c3772b0
commit
45b0f98ff1
1 changed files with 44 additions and 1 deletions
|
@ -7,15 +7,58 @@ resources:
|
||||||
uri: https://code.icb4dc0.de/prskr/nurse.git
|
uri: https://code.icb4dc0.de/prskr/nurse.git
|
||||||
branch: ((branch))
|
branch: ((branch))
|
||||||
|
|
||||||
|
- name: templates.git
|
||||||
|
type: git
|
||||||
|
icon: github
|
||||||
|
source:
|
||||||
|
uri: https://code.icb4dc0.de/prskr/pipeline-templates.git
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- name: lint
|
- name: lint
|
||||||
plan:
|
plan:
|
||||||
- get: nurse.git
|
- get: nurse.git
|
||||||
trigger: true
|
trigger: true
|
||||||
|
- get: templates.git
|
||||||
- task: lint
|
- task: lint
|
||||||
file: nurse.git/.concourse/tasks/lint.yml
|
file: nurse.git/.concourse/tasks/lint.yml
|
||||||
input_mapping: {repo: nurse.git}
|
input_mapping: {repo: nurse.git}
|
||||||
|
on_success:
|
||||||
|
task: report-success
|
||||||
|
file: templates.git/tasks/gitea-status.yml
|
||||||
|
input_mapping: {repo: nurse.git}
|
||||||
|
vars:
|
||||||
|
project_path: prskr/nurse
|
||||||
|
context: concourse-ci/lint/golangci-lint
|
||||||
|
description: Lint Go files
|
||||||
|
state: success
|
||||||
|
on_failure:
|
||||||
|
task: report-failure
|
||||||
|
file: templates.git/tasks/gitea-status.yml
|
||||||
|
input_mapping: {repo: nurse.git}
|
||||||
|
vars:
|
||||||
|
project_path: prskr/nurse
|
||||||
|
context: concourse-ci/lint/golangci-lint
|
||||||
|
description: Lint Go files
|
||||||
|
state: failure
|
||||||
- task: test
|
- task: test
|
||||||
file: nurse.git/.concourse/tasks/test.yml
|
file: nurse.git/.concourse/tasks/test.yml
|
||||||
privileged: true
|
privileged: true
|
||||||
input_mapping: {repo: nurse.git}
|
input_mapping: {repo: nurse.git}
|
||||||
|
on_success:
|
||||||
|
task: report-success
|
||||||
|
file: templates.git/tasks/gitea-status.yml
|
||||||
|
input_mapping: {repo: nurse.git}
|
||||||
|
vars:
|
||||||
|
project_path: prskr/nurse
|
||||||
|
context: concourse-ci/test/gotestsum
|
||||||
|
description: Run unit tests
|
||||||
|
state: success
|
||||||
|
on_failure:
|
||||||
|
task: report-failure
|
||||||
|
file: templates.git/tasks/gitea-status.yml
|
||||||
|
input_mapping: {repo: nurse.git}
|
||||||
|
vars:
|
||||||
|
project_path: prskr/nurse
|
||||||
|
context: concourse-ci/test/gotestsum
|
||||||
|
description: Run unit tests
|
||||||
|
state: failure
|
Loading…
Reference in a new issue