-
Notifications
You must be signed in to change notification settings - Fork 1
/
pipeline.yaml
51 lines (50 loc) · 1.24 KB
/
pipeline.yaml
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
resources:
- name: pipeline-example-repo
type: git
check_every: 1m
source:
uri: git@github.com:kirthiprakash/pipeline-example.git
branch: master
private_key: ((prikey))
paths:
- app
jobs:
- name: stage-display-commit
plan:
- get: pipeline-example-repo
version: every
trigger: true
- task: display-file
config:
platform: linux
image_resource:
type: docker-image
source: {repository: busybox}
inputs:
- name: pipeline-example-repo
run:
path: /bin/sh
args:
- -exc
- |
cat pipeline-example-repo/app/file.txt
- name: prod-display-commit
plan:
- get: pipeline-example-repo
trigger: true
version: every
passed: [stage-display-commit]
- task: display-file
config:
platform: linux
image_resource:
type: docker-image
source: {repository: busybox}
inputs:
- name: pipeline-example-repo
run:
path: /bin/sh
args:
- -exc
- |
cat pipeline-example-repo/app/file.txt