File tree 4 files changed +37
-2
lines changed
4 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 2
2
example /
3
3
.bundle
4
4
bin
5
+
6
+ .idea
7
+ .idea /*
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ resource_types:
16
16
- name : pull-request
17
17
type : docker-image
18
18
source :
19
- repository : jtarchie /pr
19
+ repository : eroad /pr
20
20
` ` `
21
21
22
22
## Source Configuration
Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ def ref
19
19
20
20
pr = Octokit . pull_request ( input [ 'source' ] [ 'repo' ] , input [ 'version' ] [ 'pr' ] )
21
21
id = pr [ 'number' ]
22
- branch_ref = pr [ 'head' ] [ 'ref' ]
22
+
23
+ # EROAD XXX: Use 'tmp' because pr['head']['ref'] assumes people don't make pull requests from their 'master' branch.
24
+ #branch_ref = pr['head']['ref']
25
+ branch_ref = 'tmp'
23
26
24
27
system ( "git clone --depth 1 #{ uri } #{ destination } 1>&2" )
25
28
Original file line number Diff line number Diff line change
1
+ resources :
2
+
3
+ - name : pullrequest-resource
4
+ type : git
5
+ check_every : 10s
6
+ source :
7
+ uri : https://github.com/eroad/pullrequest-resource.git
8
+ branch : master
9
+ username : {{github-username}}
10
+ password : {{github-password}}
11
+
12
+ - name : image
13
+ type : docker-image
14
+ source :
15
+ repository : eroadltd/pr
16
+ username : {{docker-username}}
17
+ password : {{docker-password}}
18
+
19
+ jobs :
20
+
21
+ - name : docker-build
22
+ serial : true
23
+ plan :
24
+ - aggregate :
25
+ - get : pullrequest-resource
26
+ trigger : true
27
+ - put : image
28
+ params :
29
+ build : pullrequest-resource
You can’t perform that action at this time.
0 commit comments