From 45b0f98ff159b9e33bbab7baf2d3958e20567be1 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Sat, 31 Dec 2022 12:18:22 +0100 Subject: [PATCH] feat(ci): report status to Gitea --- .concourse/branch-validate.yml | 45 +++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/.concourse/branch-validate.yml b/.concourse/branch-validate.yml index 58ec4d1..d00269c 100644 --- a/.concourse/branch-validate.yml +++ b/.concourse/branch-validate.yml @@ -7,15 +7,58 @@ resources: uri: https://code.icb4dc0.de/prskr/nurse.git branch: ((branch)) + - name: templates.git + type: git + icon: github + source: + uri: https://code.icb4dc0.de/prskr/pipeline-templates.git + jobs: - name: lint plan: - get: nurse.git trigger: true + - get: templates.git - task: lint file: nurse.git/.concourse/tasks/lint.yml 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 file: nurse.git/.concourse/tasks/test.yml privileged: true - input_mapping: {repo: nurse.git} \ No newline at end of file + 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 \ No newline at end of file