-
Notifications
You must be signed in to change notification settings - Fork 211
/
porter.yaml
57 lines (51 loc) · 1.12 KB
/
porter.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
52
53
54
55
56
57
schemaVersion: 1.0.0-alpha.1
name: mybun
version: 0.1.0
description: "An example Porter configuration"
registry: "localhost:5000"
mixins:
- exec
parameters:
- name: myfile
type: file
path: /cnab/app/myfile
- name: myotherfile
type: file
path: /cnab/app/myotherfile
# This is added to cover bug fix for https://github.com/getporter/porter/issues/835
# It will be inherently exercised in install_test.go via a default installation
- name: onlyUpgrade
type: string
applyTo:
- upgrade
outputs:
- name: myfile
type: string
applyTo:
- install
- name: myotherfile
type: file
path: /cnab/app/myotherfile
applyTo:
- install
install:
- exec:
description: "Install Hello World"
command: ./helpers.sh
arguments:
- dump-myfile
outputs:
- name: myfile
path: /cnab/app/myfile
upgrade:
- exec:
description: "World 2.0"
command: ./helpers.sh
arguments:
- dump-myfile
uninstall:
- exec:
description: "Uninstall Hello World"
command: ./helpers.sh
arguments:
- dump-myfile