-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.yml
More file actions
88 lines (79 loc) · 1.56 KB
/
Copy pathtest.yml
File metadata and controls
88 lines (79 loc) · 1.56 KB
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
resource_types:
- name: rsync-resource
type: docker-image
source:
repository: chemist/rsync-resource
tag: latest
resources:
- name: input
type: rsync-resource
source:
server: ci.internal
base_dir: static
static_identificator: input
resource_type: r
- name: bin
type: rsync-resource
source:
server: ci.internal
base_dir: bin
resource_type: rw
- name: output
type: rsync-resource
source:
server: ci.internal
base_dir: static
resource_type: w
static_identificator: output
jobs:
- name: test
plan:
- get: input
trigger: false
- task: bash script in task
config:
platform: linux
image_resource:
type: docker-image
source: {repository: chemist/alpine-fpm, tag: "latest"}
inputs:
- name: input
outputs:
- name: bin
run:
path: bash
args:
- -exc
- |
ls -alhR .
echo test > bin/test
cp input/* bin/
- put: bin
params:
identificator: check
sync_dir: bin
- name: test1
plan:
- get: bin
trigger: true
passed: [test]
- task: bash again
config:
platform: linux
image_resource:
type: docker-image
source: {repository: chemist/alpine-fpm, tag: "latest"}
inputs:
- name: bin
outputs:
- name: output
run:
path: bash
args:
- -exc
- |
ls -alhR .
cp bin/* output/
- put: output
params:
sync_dir: output