chore(ci): remove concourse config

This commit is contained in:
Peter 2023-02-28 22:03:00 +01:00
parent 80ffbb17a8
commit a3f2445762
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
5 changed files with 0 additions and 191 deletions

View file

@ -1,42 +0,0 @@
---
resource_types:
- name: git-branches
type: registry-image
source:
repository: aoldershaw/git-branches-resource
resources:
- name: feature-branches
type: git-branches
source:
uri: https://code.icb4dc0.de/prskr/goveal.git
# The "(?P<name>pattern)" syntax defines a named capture group.
# aoldershaw/git-branches-resource emits the value of each named capture
# group under the `groups` key.
#
# e.g. feature/some-feature ==> {"groups": {"feature": "some-feature"}}
branch_regex: '(\d+-|\w+\/)(?P<feature>.*)'
- name: goveal.git
type: git
icon: github
source:
uri: https://code.icb4dc0.de/prskr/goveal.git
fetch_tags: true
jobs:
- name: set-feature-pipelines
plan:
- in_parallel:
- get: feature-branches
trigger: true
- get: goveal.git
- load_var: branches
file: feature-branches/branches.json
- across:
- var: branch
values: ((.:branches))
set_pipeline: goveal-dev
file: goveal.git/.concourse/branch-validate.yml
instance_vars: {feature: ((.:branch.groups.feature))}
vars: {branch: ((.:branch.name))}

View file

@ -1,69 +0,0 @@
---
resources:
- name: goveal.git
type: git
icon: github
source:
uri: https://code.icb4dc0.de/prskr/goveal.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: goveal.git
trigger: true
- get: templates.git
- task: lint
file: goveal.git/.concourse/tasks/lint.yml
input_mapping: {repo: goveal.git}
on_success:
task: report-success
file: templates.git/tasks/gitea-status.yml
input_mapping: {repo: goveal.git}
vars:
project_path: prskr/goveal
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: goveal.git}
vars:
project_path: prskr/goveal
context: concourse-ci/lint/golangci-lint
description: Lint Go files
state: failure
- name: test
plan:
- get: goveal.git
trigger: true
- get: templates.git
- task: test
file: goveal.git/.concourse/tasks/test.yml
privileged: true
input_mapping: {repo: goveal.git}
on_success:
task: report-success
file: templates.git/tasks/gitea-status.yml
input_mapping: {repo: goveal.git}
vars:
project_path: prskr/goveal
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: goveal.git}
vars:
project_path: prskr/goveal
context: concourse-ci/test/gotestsum
description: Run unit tests
state: failure

View file

@ -1,30 +0,0 @@
---
resources:
- name: daily
type: time
source:
interval: 24h
- name: goveal.git
type: git
icon: github
source:
uri: https://code.icb4dc0.de/prskr/goveal.git
- name: templates.git
type: git
icon: github
source:
uri: https://code.icb4dc0.de/prskr/pipeline-templates.git
jobs:
- name: renovate
plan:
- get: goveal.git
trigger: true
- get: templates.git
- get: daily
trigger: true
- task: renovate
file: templates.git/tasks/renovate.yml
input_mapping: { repo: goveal.git }
vars:
project_path: prskr/goveal

View file

@ -1,24 +0,0 @@
---
platform: linux
image_resource:
type: registry-image
source:
repository: docker.io/golangci/golangci-lint
tag: latest
inputs:
- name: repo
path: .
params:
GO111MODULE: "on"
CGO_ENABLED: "0"
GITEA_TOKEN: ((gitea-credentials.token))
run:
path: bash
args:
- -ce
- |
golangci-lint run -v

View file

@ -1,26 +0,0 @@
---
platform: linux
image_resource:
type: registry-image
source:
repository: docker.io/golang
tag: 1.19-buster
inputs:
- name: repo
path: .
params:
GO111MODULE: "on"
CGO_ENABLED: "1"
GITEA_TOKEN: ((gitea-credentials.token))
run:
path: bash
args:
- -ce
- |
go install gotest.tools/gotestsum@latest
curl -L https://github.com/go-task/task/releases/latest/download/task_linux_amd64.tar.gz | tar -xvz -C /usr/local/bin task
task test