Skip to content

Commit

Permalink
ci: upgrade to teliaoss/github-pr-resource
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Aug 28, 2020
1 parent 6429526 commit 1499384
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 25 deletions.
25 changes: 14 additions & 11 deletions concourse/loofah-pr.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -26,7 +29,7 @@ jobs:
- put: loofah-pr
params:
path: loofah-pr
status: pending
status: PENDING

- name: pr-success
public: true
Expand All @@ -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
Expand Down Expand Up @@ -71,5 +74,5 @@ jobs:
put: loofah-pr
params:
path: loofah-pr
status: failure
status: FAILURE
% end
31 changes: 17 additions & 14 deletions concourse/loofah-pr.yml.generated
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

resource_types:
- name: pull-request
type: registry-image
source:
repository: teliaoss/github-pr-resource

resources:
- name: ci
type: git
Expand All @@ -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
Expand All @@ -31,7 +34,7 @@ jobs:
- put: loofah-pr
params:
path: loofah-pr
status: pending
status: PENDING

- name: pr-success
public: true
Expand All @@ -48,7 +51,7 @@ jobs:
- put: loofah-pr
params:
path: loofah-pr
status: success
status: SUCCESS

- name: ruby-2.4-pr
public: true
Expand Down Expand Up @@ -76,7 +79,7 @@ jobs:
put: loofah-pr
params:
path: loofah-pr
status: failure
status: FAILURE
- name: ruby-2.5-pr
public: true
plan:
Expand All @@ -103,7 +106,7 @@ jobs:
put: loofah-pr
params:
path: loofah-pr
status: failure
status: FAILURE
- name: ruby-2.6-pr
public: true
plan:
Expand All @@ -130,7 +133,7 @@ jobs:
put: loofah-pr
params:
path: loofah-pr
status: failure
status: FAILURE
- name: ruby-2.7-pr
public: true
plan:
Expand All @@ -157,4 +160,4 @@ jobs:
put: loofah-pr
params:
path: loofah-pr
status: failure
status: FAILURE

0 comments on commit 1499384

Please sign in to comment.