chore: publish 1.5.0+2024.11.0 release
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon 2025-01-27 20:01:48 +01:00 committed by Simon
parent bf442edf8e
commit 292619f299
4 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,6 @@
export PRETIX_CONFIG_VERSION=v1
export CRON_ENTRYPOINT_VERSION=v1
export DB_ENTRYPOINT_VERSION=v1
export DB_ENTRYPOINT_VERSION=v2
export PG_BACKUP_VERSION=v1
change_adminpass(){

View File

@ -25,7 +25,7 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=1.4.1+2024.11.0"
- "coop-cloud.${STACK_NAME}.version=1.5.0+2024.11.0"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/healthcheck"]
interval: 30s
@ -34,7 +34,7 @@ services:
start_period: 1m
db:
image: postgres:12
image: postgres:16
volumes:
- "postgres:/var/lib/postgresql/data"
networks:

View File

@ -21,7 +21,6 @@ install_old_postgres_debian() {
pgenv check
LATEST_OLD_VERSION=$(pgenv available $DATA_VERSION | grep -oE "$DATA_VERSION\.[0-9]+" | tail -n 1)
pgenv build $LATEST_OLD_VERSION
export PATH="/tmp/pgenv/pgsql-$LATEST_OLD_VERSION/bin:$PATH"
}
install_old_postgres_alpine() {
@ -35,7 +34,6 @@ install_old_postgres_alpine() {
pgenv check
LATEST_OLD_VERSION=$(pgenv available $DATA_VERSION | grep -oE "$DATA_VERSION\.[0-9]+" | tail -n 1)
pgenv build $LATEST_OLD_VERSION
export PATH="/tmp/pgenv/pgsql-$LATEST_OLD_VERSION/bin:$PATH"
}
if [ -e $MIGRATION_MARKER ]; then
@ -55,9 +53,11 @@ if [ -f $PGDATA/PG_VERSION ]; then
install_old_postgres_debian
fi
echo "shuffling around"
gosu postgres mkdir $OLDDATA $NEWDATA
chmod 700 $OLDDATA $NEWDATA
gosu postgres mkdir $OLDDATA
chmod 700 $OLDDATA
mv $PGDATA/* $OLDDATA/ || true
gosu postgres mkdir $NEWDATA
chmod 700 $NEWDATA
touch $MIGRATION_MARKER
echo "running initdb"
# abuse entrypoint script for initdb by making server error out

1
release/1.5.0+2024.11.0 Normal file
View File

@ -0,0 +1 @@
New major postgres version with automated update script! Make sure to backup your database before.