chore(ci): remove Concourse config
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
7dbb8566b3
commit
9371a2f950
5 changed files with 0 additions and 206 deletions
|
@ -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/nurse.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: nurse.git
|
||||
type: git
|
||||
icon: github
|
||||
source:
|
||||
uri: https://code.icb4dc0.de/prskr/nurse.git
|
||||
fetch_tags: true
|
||||
|
||||
jobs:
|
||||
- name: set-feature-pipelines
|
||||
plan:
|
||||
- in_parallel:
|
||||
- get: feature-branches
|
||||
trigger: true
|
||||
- get: nurse.git
|
||||
- load_var: branches
|
||||
file: feature-branches/branches.json
|
||||
- across:
|
||||
- var: branch
|
||||
values: ((.:branches))
|
||||
set_pipeline: nurse.dev
|
||||
file: nurse.git/.concourse/branch-validate.yml
|
||||
instance_vars: {feature: ((.:branch.groups.feature))}
|
||||
vars: {branch: ((.:branch.name))}
|
|
@ -1,69 +0,0 @@
|
|||
---
|
||||
resources:
|
||||
- name: nurse.git
|
||||
type: git
|
||||
icon: github
|
||||
source:
|
||||
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
|
||||
- name: test
|
||||
plan:
|
||||
- get: nurse.git
|
||||
trigger: true
|
||||
- get: templates.git
|
||||
- task: test
|
||||
file: nurse.git/.concourse/tasks/test.yml
|
||||
privileged: true
|
||||
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
|
|
@ -1,30 +0,0 @@
|
|||
---
|
||||
resources:
|
||||
- name: daily
|
||||
type: time
|
||||
source:
|
||||
interval: 24h
|
||||
- name: nurse.git
|
||||
type: git
|
||||
icon: github
|
||||
source:
|
||||
uri: https://code.icb4dc0.de/prskr/nurse.git
|
||||
- name: templates.git
|
||||
type: git
|
||||
icon: github
|
||||
source:
|
||||
uri: https://code.icb4dc0.de/prskr/pipeline-templates.git
|
||||
|
||||
jobs:
|
||||
- name: renovate
|
||||
plan:
|
||||
- get: nurse.git
|
||||
trigger: true
|
||||
- get: templates.git
|
||||
- get: daily
|
||||
trigger: true
|
||||
- task: renovate
|
||||
file: templates.git/tasks/renovate.yml
|
||||
input_mapping: { repo: nurse.git }
|
||||
vars:
|
||||
project_path: prskr/nurse
|
|
@ -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
|
|
@ -1,41 +0,0 @@
|
|||
---
|
||||
platform: linux
|
||||
|
||||
image_resource:
|
||||
type: registry-image
|
||||
source:
|
||||
repository: code.icb4dc0.de/prskr/pipelines/dind-go
|
||||
tag: latest
|
||||
username: ((gitea-credentials.user))
|
||||
password: ((gitea-credentials.token))
|
||||
|
||||
inputs:
|
||||
- name: repo
|
||||
path: .
|
||||
|
||||
params:
|
||||
GO111MODULE: "on"
|
||||
CGO_ENABLED: "1"
|
||||
DOCKER_HOST: tcp://127.0.0.1:2375
|
||||
GITEA_TOKEN: ((gitea-credentials.token))
|
||||
|
||||
run:
|
||||
path: bash
|
||||
args:
|
||||
- -ce
|
||||
- |
|
||||
dockerd -H $DOCKER_HOST >/tmp/docker.log 2>&1 &
|
||||
echo $! > /tmp/docker.pid
|
||||
|
||||
go install gotest.tools/gotestsum@latest
|
||||
|
||||
echo waiting for docker to come up...
|
||||
until docker info >/dev/null 2>&1; do
|
||||
sleep 1
|
||||
if ! kill -0 "$(cat /tmp/docker.pid)" 2>/dev/null; then
|
||||
cat /tmp/docker.log
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
|
||||
gotestsum -f pkgname-and-test-fails -- -race -shuffle=on ./...
|
Loading…
Reference in a new issue