-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzerops.yaml
39 lines (37 loc) · 1.29 KB
/
zerops.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
zerops:
- setup: base
build:
os: ubuntu
base: [email protected]
envVariables:
prepareCommands:
- curl -sSO https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
- chmod +x wp-cli.phar
- mv wp-cli.phar /usr/local/bin/wp
- wp --allow-root --info
buildCommands:
- curl -sS https://github.com/vrana/adminer/releases/download/v4.8.1/adminer-4.8.1.php -o ./wordpress/adminer.php
- wp --allow-root core download --path=./wordpress --locale=cs_CZ --version=6.6.2
deployFiles:
- ./wordpress
- ./scripts
- ./site.conf.tmpl
run:
os: ubuntu
base: [email protected]
envVariables:
HTTP_X_FORWARDED_PROTO: https
WORDPRESS_DB_HOST: ${wpdb_hostname}
WORDPRESS_DB_NAME: ${hostname}
WORDPRESS_DB_PASSWORD: ${wpdb_password}
WORDPRESS_DB_USER: ${wpdb_user}
prepareCommands:
- apt-get update && apt-get install -y mariadb-client
- curl -sSO https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
- chmod +x wp-cli.phar
- mv wp-cli.phar /usr/local/bin/wp
initCommands:
- sudo -E -u zerops -- sh ./scripts/initialize.sh
siteConfigPath: site.conf.tmpl
- setup: wp01
extends: base