diff --git a/concourse/loofah-pr.yml b/concourse/loofah-pr.yml index 00349c8..8768fc6 100644 --- a/concourse/loofah-pr.yml +++ b/concourse/loofah-pr.yml @@ -1,21 +1,24 @@ % require "common_prelude.rb" +resource_types: +- name: pull-request + type: registry-image + source: + repository: teliaoss/github-pr-resource + resources: <%= erbify_file "common_resources.yml" -%> - name: loofah-pr type: pull-request - icon: "github" + icon: github + check_every: 15m + # https://ci.nokogiri.org/api/v1/teams/nokogiri-core/pipelines/loofah-pr/resources/loofah-pr/check/webhook?webhook_token=((webhook_token)) + webhook_token: ((loofah-pr-webhook-token)) source: - repo: flavorjones/loofah + repository: flavorjones/loofah access_token: ((github-repo-status-access-token)) ignore_paths: <%= $common_ignore_paths %> -resource_types: -- name: pull-request - type: registry-image - source: - repository: jtarchie/pr - jobs: - name: pr-pending public: true @@ -26,7 +29,7 @@ jobs: - put: loofah-pr params: path: loofah-pr - status: pending + status: PENDING - name: pr-success public: true @@ -42,7 +45,7 @@ jobs: - put: loofah-pr params: path: loofah-pr - status: success + status: SUCCESS % RUBIES[:mri].each do |ruby_version| - name: ruby-<%= ruby_version %>-pr @@ -71,5 +74,5 @@ jobs: put: loofah-pr params: path: loofah-pr - status: failure + status: FAILURE % end diff --git a/concourse/loofah-pr.yml.generated b/concourse/loofah-pr.yml.generated index 80e8c7b..616a1e2 100644 --- a/concourse/loofah-pr.yml.generated +++ b/concourse/loofah-pr.yml.generated @@ -1,4 +1,10 @@ +resource_types: +- name: pull-request + type: registry-image + source: + repository: teliaoss/github-pr-resource + resources: - name: ci type: git @@ -9,18 +15,15 @@ resources: disable_ci_skip: true # always get the latest pipeline configuration - name: loofah-pr type: pull-request - icon: "github" + icon: github + check_every: 15m + # https://ci.nokogiri.org/api/v1/teams/nokogiri-core/pipelines/loofah-pr/resources/loofah-pr/check/webhook?webhook_token=((webhook_token)) + webhook_token: ((loofah-pr-webhook-token)) source: - repo: flavorjones/loofah + repository: flavorjones/loofah access_token: ((github-repo-status-access-token)) ignore_paths: ["CHANGELOG.md","README.md","concourse/**"] -resource_types: -- name: pull-request - type: registry-image - source: - repository: jtarchie/pr - jobs: - name: pr-pending public: true @@ -31,7 +34,7 @@ jobs: - put: loofah-pr params: path: loofah-pr - status: pending + status: PENDING - name: pr-success public: true @@ -48,7 +51,7 @@ jobs: - put: loofah-pr params: path: loofah-pr - status: success + status: SUCCESS - name: ruby-2.4-pr public: true @@ -76,7 +79,7 @@ jobs: put: loofah-pr params: path: loofah-pr - status: failure + status: FAILURE - name: ruby-2.5-pr public: true plan: @@ -103,7 +106,7 @@ jobs: put: loofah-pr params: path: loofah-pr - status: failure + status: FAILURE - name: ruby-2.6-pr public: true plan: @@ -130,7 +133,7 @@ jobs: put: loofah-pr params: path: loofah-pr - status: failure + status: FAILURE - name: ruby-2.7-pr public: true plan: @@ -157,4 +160,4 @@ jobs: put: loofah-pr params: path: loofah-pr - status: failure + status: FAILURE