Skip to content
Permalink
main
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
mixins:
- exec
- helm:
repositories:
bitnami:
url: "https://charts.bitnami.com/bitnami"
name: wordpress
registry: "localhost:5000"
version: 0.1.3
dependencies:
- name: mysql
reference: localhost:5000/mysql:v0.1.3
parameters:
database-name: wordpress
mysql-user: wordpress
credentials:
- name: kubeconfig
path: /root/.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: ''
install:
- helm:
description: "Install Wordpress"
name: "{{ bundle.parameters.wordpress-name }}"
chart: bitnami/wordpress
version: "9.9.3"
namespace: "{{ bundle.parameters.namespace }}"
replace: true
set:
wordpressPassword: "{{ bundle.parameters.wordpress-password }}"
externalDatabase.password: "{{ bundle.dependencies.mysql.outputs.mysql-password }}"
externalDatabase.port: 3306
mariadb.enabled: false
outputs:
- name: wordpress-password
secret: "{{ bundle.parameters.wordpress-name }}"
key: wordpress-password
upgrade:
- helm:
description: "Upgrade Wordpress"
name: "{{ bundle.parameters.wordpress-name }}"
namespace: "{{ bundle.parameters.namespace }}"
chart: bitnami/wordpress
version: "9.9.3"
outputs:
- name: wordpress-password
secret: "{{ bundle.parameters.wordpress-name }}"
key: wordpress-password
ping:
- exec:
description: "Ping"
command: ./helpers.sh
arguments:
- ping
uninstall:
- helm:
description: "Uninstall Wordpress"
purge: true
releases:
- "{{ bundle.parameters.wordpress-name }}"
outputs:
- name: wordpress-password
description: "The Wordpress installation password"
type: string
default: "default-password"
applyTo:
- "install"
- "upgrade"
sensitive: true