Compare commits

..
Author SHA1 Message Date
joe-irving c39f8849de chore: publish 2.2.0+2.3.0 2026-07-08 16:45:04 +01:00
6 changed files with 10 additions and 36 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ kind: pipeline
name: deploy to swarm-test.autonomic.zone
steps:
- name: deployment
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest@sha256:fc1fa69bea5528db7ba184297735ac1bbd278720910e4cb1f502de9aee14e228
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
settings:
host: swarm-test.autonomic.zone
stack: baserow
@@ -25,7 +25,7 @@ kind: pipeline
name: generate recipe catalogue
steps:
- name: release a new version
image: plugins/downstream@sha256:03ff02d8a5637ea5197fa08929a91dfeeb5e30b1da62b82b6c2a895b170338ca
image: plugins/downstream
settings:
server: https://build.coopcloud.tech
token:
+1 -1
View File
@@ -1 +1 @@
export PG_BACKUP_CONFIG_VERSION=v2
export PG_BACKUP_CONFIG_VERSION=v1
+3 -14
View File
@@ -2,32 +2,21 @@ if [ "$1" == "pre-backup" ]; then
# Remove any existing db dump and then create a new one
rm -rf $DATA_DIR/postgres/postgres-backup
source /baserow/data/.pgpass
PGPASSWORD=$DATABASE_PASSWORD pg_dump -j 2 -h localhost -U baserow baserow --format=directory -f $DATA_DIR/postgres/postgres-backup
PGPASSWORD=$DATABASE_PASSWORD pg_dump -j 8 -h localhost -U baserow baserow --format=directory -f $DATA_DIR/postgres/postgres-backup
exit
fi
if [ "$1" == "post-backup" ]; then
# rm -rf $DATA_DIR/postgres/postgres-backup
rm -rf $DATA_DIR/postgres/postgres-backup
exit
fi
if [ "$1" == "pre-restore" ]; then
pkill -STOP -f "webfrontend"
pkill -STOP -f "celery"
pkill -STOP -f "caddy"
# Disconnect any remaining idle sessions from the 'baserow' database
# This prevents "database is being accessed by other users" errors during pg_restore -c
source /baserow/data/.pgpass
PGPASSWORD=$DATABASE_PASSWORD psql -h localhost -U baserow -d postgres -c "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'baserow' AND pid <> pg_backend_pid();"
exit
fi
if [ "$1" == "post-restore" ]; then
source /baserow/data/.pgpass
PGPASSWORD=$DATABASE_PASSWORD pg_restore -j 2 -h localhost -U baserow -d baserow -c $DATA_DIR/postgres/postgres-backup
pkill -CONT -f "webfrontend"
pkill -CONT -f "celery"
pkill -CONT -f "caddy"
PGPASSWORD=$DATABASE_PASSWORD pg_restore -j 8 -h localhost -U baserow -d baserow -c $DATA_DIR/postgres/postgres-backup
exit
fi
+4 -4
View File
@@ -3,14 +3,14 @@ version: "3.8"
services:
app:
image: baserow/baserow:2.4.0@sha256:f35444dbbbd390c48dae30eaed0b9668b04ff4b71c97d08f9cb2dd436ba22150
image: baserow/baserow:2.3.0
networks:
- proxy
environment:
- BASEROW_PUBLIC_URL=https://${DOMAIN}
- SECRET_KEY_FILE=/run/secrets/secret_key
- BASEROW_JWT_SIGNING_KEY_FILE=/run/secrets/jwt_key
- BASEROW_CADDY_ADDRESSES=:80
- BASEROW_CADDY_ADDRESSES=:80
- BASEROW_BUILDER_DOMAINS=${WILDCARD_DOMAIN}
secrets:
- secret_key
@@ -33,7 +33,7 @@ services:
- "backupbot.backup.pre-hook=/backup.sh pre-backup"
- "backupbot.backup.post-hook=/backup.sh post-backup"
- "backupbot.restore.post-hook=/backup.sh post-restore"
- "coop-cloud.${STACK_NAME}.version=2.4.0+2.4.0"
- "coop-cloud.${STACK_NAME}.version=2.2.0+2.3.0"
healthcheck:
test: ["CMD", "./baserow.sh", "backend-cmd", "backend-healthcheck"]
interval: 30s
@@ -52,7 +52,7 @@ volumes:
configs:
backup-postgres:
name: ${STACK_NAME}_backup-postgres_${PG_BACKUP_CONFIG_VERSION}
name: backup-postgres_${PG_BACKUP_CONFIG_VERSION}
file: ./backup-postgres.sh
networks:
-1
View File
@@ -1 +0,0 @@
Read the release notes here: https://github.com/baserow/baserow/releases/tag/2.4.0
-14
View File
@@ -1,14 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"packageRules": [
{
"matchDatasources": [
"docker"
],
"pinDigests": true
}
]
}