/
porter.yaml
76 lines (67 loc) · 1.32 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
schemaVersion: 1.0.1
name: wordpress
version: 0.1.4
registry: "localhost:5000"
mixins:
- exec
- helm3:
repositories:
bitnami:
url: "https://charts.bitnami.com/bitnami"
dependencies:
requires:
- name: mysql
bundle:
reference: localhost:5000/mysql:v0.1.4
parameters:
database-name: wordpress
mysql-user: wordpress
namespace: wordpress
credentials:
- name: kubeconfig
path: /home/nonroot/.kube/config
parameters:
- name: wordpress-name
type: string
default: porter-ci-wordpress
env: WORDPRESS_NAME
- name: wordpress-password
type: string
sensitive: true
applyTo:
- install
- upgrade
- name: namespace
type: string
default: 'wordpress'
install:
- exec:
command: ./helpers.sh
arguments:
- install
upgrade:
- exec:
command: ./helpers.sh
arguments:
- install
ping:
- exec:
description: "Ping"
command: ./helpers.sh
arguments:
- ping
uninstall:
- exec:
command: echo
arguments:
- uninstalled
outputs:
- name: wordpress-password
description: "The Wordpress installation password"
type: string
default: "default-password"
applyTo:
- "install"
- "upgrade"
sensitive: true
path: /cnab/app/outputs/wordpress-password