-
Notifications
You must be signed in to change notification settings - Fork 17
/
pullreqpipe.yml
101 lines (97 loc) · 2.04 KB
/
pullreqpipe.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
jobs:
- name: build-jekyll
public: true
plan:
- get: git-pr
trigger: true
version: every
- get: git
trigger: true
- task: build
config:
platform: linux
image_resource:
type: docker-image
source: {repository: praqma/gh-pages}
inputs:
- name: git
- name: git-pr
run:
path: sh
args:
- -exc
- |
ls git
cd git-pr
git config --global user.email "nobody@special.praqma"
git config --global user.name "praqma" && git add .
git branch -avv
git fetch ../git master
git branch -avv
git rebase master
ls
git log
on_success:
put: git-pr
params:
path: git-pr
status: success
on_failure:
put: git-pr
params:
path: git-pr
status: failure
- put: git-pr
params:
path: git-pr
status: success
merge:
method: squash
commit_msg: git-pr/README.md
- name: After-pull-req
public: true
plan:
- get: git-pr
passed: [build-jekyll]
- get: git
trigger: true
- task: build
config:
platform: linux
image_resource:
type: docker-image
source: {repository: praqma/gh-pages}
inputs:
- name: git
- name: git-pr
run:
path: sh
args:
- -exc
- |
ls
cd git-pr
ls && echo "git-pr"
cd ../git
ls && echo "git-only"
resources:
- name: git-pr
type: pull-request
source:
access_token: {{concourse-pull-request-token}}
private_key: {{concourse-token}}
repo: Sharor/concourse-workshop
base: master
- name: git
type: git
source:
uri: https://github.com/Sharor/concourse-workshop.git
branch: master
username: {{github-username}}
password: {{github-password}}
resource_types:
- name: pull-request
type: docker-image
source:
repository: jtarchie/pr
tag: v31