-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpipeline.yml
94 lines (81 loc) · 3.02 KB
/
pipeline.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
# my-verilog-examples pipeline.yml
#------------------------------------------------------------------------------------------
jobs:
#**********************************************
- name: job-readme-github-pages
#**********************************************
plan:
# GET REPO FROM GITHUB
- get: my-verilog-examples
trigger: true
# SEND SLACK ALERT
- put: resource-slack-alert
params:
channel: '#jeff-builds'
text: "From my-verilog-examples: STARTED job-readme-github-pages in concourse ci."
# SEND GITHUB STATUS
- put: resource-repo-status
params: { state: "pending", description: "STARTED job-readme-github-pages in concourse ci.", commit: "my-verilog-examples" }
# RUN TASK IN REPO USING ALPINE DOCKER IMAGE
- task: task-readme-github-pages
file: my-verilog-examples/ci/tasks/task-readme-github-pages.yml
# TASK SUCCESS
on_success:
do:
# PUSH NEW REPO TO GITHUB
- put: my-verilog-examples
params:
repository: my-verilog-examples-updated
# SEND SLACK ALERT
- put: resource-slack-alert
params:
channel: '#jeff-builds'
text: "From my-verilog-examples: PASSED job-readme-github-pages in concourse ci."
# SEND GITHUB STATUS
- put: resource-repo-status
params: { state: "success", description: "PASSED job-readme-github-pages in concourse ci", commit: "my-verilog-examples" }
# TASK FAILURE
on_failure:
do:
# SEND SLACK ALERT
- put: resource-slack-alert
params:
channel: '#jeff-builds'
text: "From my-verilog-examples: FAILED job-readme-github-pages in concourse ci."
# SEND GITHUB STATUS
- put: resource-repo-status
params: { state: "failure", description: "FAILED job-readme-github-pages in concourse ci", commit: "my-verilog-examples" }
#------------------------------------------------------------------------------------------
resource_types:
- name: slack-notification
type: docker-image
source:
repository: cfcommunity/slack-notification-resource
tag: latest
- name: github-status
type: docker-image
source:
repository: jeffdecola/github-status-resource-clone
tag: v0.0.2
#------------------------------------------------------------------------------------------
resources:
- name: my-verilog-examples
type: git
icon: github
source:
#uri: https://github.com/jeffdecola/my-verilog-examples
uri: [email protected]:jeffdecola/my-verilog-examples.git
branch: master
private_key: ((concourse_git_private_key))
- name: resource-slack-alert
type: slack-notification
icon: slack
source:
url: ((slack_url))
- name: resource-repo-status
type: github-status
icon: github
source:
repository: jeffdecola/my-verilog-examples
access_token: ((repo_github_token))
branch: master