From a3f244576264abe97c8c9d855232804a20ffc20d Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Tue, 28 Feb 2023 22:03:00 +0100 Subject: [PATCH] chore(ci): remove concourse config --- .concourse/branch-tracker.yml | 42 --------------------- .concourse/branch-validate.yml | 69 ---------------------------------- .concourse/cleanup.yml | 30 --------------- .concourse/tasks/lint.yml | 24 ------------ .concourse/tasks/test.yml | 26 ------------- 5 files changed, 191 deletions(-) delete mode 100644 .concourse/branch-tracker.yml delete mode 100644 .concourse/branch-validate.yml delete mode 100644 .concourse/cleanup.yml delete mode 100644 .concourse/tasks/lint.yml delete mode 100644 .concourse/tasks/test.yml diff --git a/.concourse/branch-tracker.yml b/.concourse/branch-tracker.yml deleted file mode 100644 index 73c2496..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/goveal.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: 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))} \ No newline at end of file diff --git a/.concourse/branch-validate.yml b/.concourse/branch-validate.yml deleted file mode 100644 index d474c78..0000000 --- a/.concourse/branch-validate.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.concourse/cleanup.yml b/.concourse/cleanup.yml deleted file mode 100644 index 11c120b..0000000 --- a/.concourse/cleanup.yml +++ /dev/null @@ -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 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 06853ba..0000000 --- a/.concourse/tasks/test.yml +++ /dev/null @@ -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