Compare commits

...

10 Commits

Author SHA1 Message Date
cf9b5f529e chore: publish 2.9.0+6.5.2 release 2024-04-15 16:50:18 +02:00
3wc
240b70a967 chore: publish 2.8.0+6.5.0 release 2024-04-07 12:43:44 -03:00
3wc
7f6b6a5ff2 Update metadata 2024-03-30 16:19:49 -03:00
4d99aae234 Updated .drone.yml to use main branch 2024-03-28 14:17:57 +00:00
959484f5e5 Added HTACCESS_CONF_VERSION to drone config 2024-03-28 14:15:37 +00:00
7ef8e5515d chore: publish 2.7.3+6.4.3 release 2024-03-25 12:26:53 +00:00
770ef4932a Add FTP Access 2024-01-29 20:41:59 +01:00
3wc
dcb8a9a3a9 chore: publish 2.7.2+6.4.2 release 2024-01-17 17:47:32 -03:00
3wc
f3a9fad0a1 Bump ENTRYPOINT_CONF_VERSION 2024-01-17 17:46:22 -03:00
3wc
ebbd41e612 chore: publish 2.7.1+6.4.2 release 2024-01-17 17:40:07 -03:00
8 changed files with 54 additions and 7 deletions

View File

@ -21,9 +21,10 @@ steps:
SECRET_DB_ROOT_PASSWORD_VERSION: v1
PHP_UPLOADS_CONF_VERSION: v1
ENTRYPOINT_CONF_VERSION: v1
HTACCESS_CONF_VERSION: v1
trigger:
branch:
- master
- main
---
kind: pipeline
name: generate recipe catalogue

View File

@ -67,3 +67,9 @@ SECRET_DB_PASSWORD_VERSION=v1
# Wide-open CORS
# 🚩🚩 dangerous, use only for development sites!
#CORS_ALLOW_ALL=1
# FTP
#COMPOSE_FILE="$COMPOSE_FILE:compose.ftp.yml"
#SECRET_FTP_PASS_VERSION=v1
#USERS_CONF_VERSION=v1

View File

@ -7,7 +7,7 @@ Coöp Cloud + [Wordpress](https://wordpress.org) = 🥳
<!-- metadata -->
* **Category**: Apps
* **Status**: 3, stable
* **Status**: 4
* **Image**: [`wordpress`](https://hub.docker.com/_/wordpress), 4, upstream
* **Healthcheck**: Yes
* **Backups**: Yes

17
abra.sh
View File

@ -1,13 +1,24 @@
export PHP_UPLOADS_CONF_VERSION=v3
export ENTRYPOINT_CONF_VERSION=v6
export ENTRYPOINT_CONF_VERSION=v7
export ENTRYPOINT_MAILRELAY_CONF_VERSION=v2
export MSMTP_CONF_VERSION=v4
export HTACCESS_CONF_VERSION=v1
export HTACCESS_CONF_VERSION=v2
wp() {
su -p www-data -s /bin/bash -c "/usr/local/bin/wp $@"
}
update() {
wp "core update-db"
wp "plugin update --all"
wp "plugin auto-updates enable --all"
wp "theme update --all"
wp "theme auto-updates enable --all"
wp "language core update"
wp "language plugin update --all"
wp "language theme update --all"
}
core_install(){
ADMIN=admin
if [ -n "$AUTHENTIK_DOMAIN" ]
@ -27,6 +38,7 @@ core_install(){
else
wp "option set default_role subscriber"
fi
wp "theme auto-updates enable --all"
wp 'plugin auto-updates enable --all' || exit 0
}
@ -39,6 +51,7 @@ set_authentik(){
fi
wp "user create akadmin admin@example.com --role=administrator"
wp "plugin install --activate daggerhart-openid-connect-generic"
wp 'plugin auto-updates enable daggerhart-openid-connect-generic'
wp "option update --format=json openid_connect_generic_settings '
{
\"login_type\":\"$LOGIN_TYPE\",

26
compose.ftp.yml Normal file
View File

@ -0,0 +1,26 @@
---
version: "3.8"
services:
ftp:
image: atmoz/sftp
secrets:
- ftp_pass
ports:
- 2222:22
volumes:
- "wordpress_content:/home/ftp_user/wp-content"
configs:
- source: users_conf
target: /etc/sftp/users.conf
secrets:
ftp_pass:
name: ${STACK_NAME}_ftp_pass_${SECRET_FTP_PASS_VERSION}
external: true
configs:
users_conf:
name: ${STACK_NAME}_users_conf_${USERS_CONF_VERSION}
file: users.conf.tmpl
template_driver: golang

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: "wordpress:6.4.2"
image: "wordpress:6.5.2"
volumes:
- "wordpress_content:/var/www/html/wp-content/"
networks:
@ -60,10 +60,10 @@ services:
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
- "backupbot.backup=true"
- "backupbot.backup.path=/var/www/html"
- "coop-cloud.${STACK_NAME}.version=2.7.0+6.4.2"
- "coop-cloud.${STACK_NAME}.version=2.9.0+6.5.2"
db:
image: "mariadb:11.2"
image: "mariadb:11.3"
volumes:
- "mariadb:/var/lib/mysql"
networks:

1
users.conf.tmpl Normal file
View File

@ -0,0 +1 @@
ftp_user:{{ secret "ftp_pass" }}:33:33