diff --git a/.concourse/branch-tracker.yml b/.concourse/branch-tracker.yml deleted file mode 100644 index 2b6e3aa..0000000 --- a/.concourse/branch-tracker.yml +++ /dev/null @@ -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 "(?Ppattern)" 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.*)' - - - 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))} \ No newline at end of file diff --git a/.concourse/branch-validate.yml b/.concourse/branch-validate.yml deleted file mode 100644 index 03ac41f..0000000 --- a/.concourse/branch-validate.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.concourse/cleanup.yml b/.concourse/cleanup.yml deleted file mode 100644 index 689b998..0000000 --- a/.concourse/cleanup.yml +++ /dev/null @@ -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 diff --git a/.concourse/tasks/lint.yml b/.concourse/tasks/lint.yml deleted file mode 100644 index 964dba3..0000000 --- a/.concourse/tasks/lint.yml +++ /dev/null @@ -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 diff --git a/.concourse/tasks/test.yml b/.concourse/tasks/test.yml deleted file mode 100644 index 2c59eb7..0000000 --- a/.concourse/tasks/test.yml +++ /dev/null @@ -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 ./...