Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FIX (ci): Quote space-separated DSN values so .env is shell-sourceable

Rostislav Dugina48a52f0cf16
diff --git a/.env.example b/.env.example
index 5a383874..8e1ab969 100644
--- a/.env.example
+++ b/.env.example
@@ -6,11 +6,11 @@ SHOW_DB_INSTALLATION_VERIFICATION_LOGS=true
DEV_DB_NAME=databasus
DEV_DB_USERNAME=postgres
DEV_DB_PASSWORD=Q1234567
-DATABASE_DSN=host=localhost user=postgres password=Q1234567 dbname=databasus port=5437 sslmode=disable
+DATABASE_DSN="host=localhost user=postgres password=Q1234567 dbname=databasus port=5437 sslmode=disable"
DATABASE_URL=postgres://postgres:Q1234567@localhost:5437/databasus?sslmode=disable
# test DB (used by backend when IsTesting=true so tests don't pollute the dev DB)
-TEST_DATABASE_DSN=host=localhost user=postgres password=Q1234567 dbname=databasus port=5438 sslmode=disable
+TEST_DATABASE_DSN="host=localhost user=postgres password=Q1234567 dbname=databasus port=5438 sslmode=disable"
# migrations
GOOSE_DRIVER=postgres
diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml
index 23a2ba3b..3c5b5865 100644
--- a/.github/workflows/ci-release.yml
+++ b/.github/workflows/ci-release.yml
@@ -263,10 +263,10 @@ jobs:
cp .env.example .env
cat >> .env << EOF
# CI overrides — host=172.17.0.1 reaches host from container
- DATABASE_DSN=host=172.17.0.1 user=postgres password=Q1234567 dbname=databasus port=5437 sslmode=disable
+ DATABASE_DSN="host=172.17.0.1 user=postgres password=Q1234567 dbname=databasus port=5437 sslmode=disable"
DATABASE_URL=postgres://postgres:[email protected]:5437/databasus?sslmode=disable
GOOSE_DBSTRING=postgres://postgres:[email protected]:5437/databasus?sslmode=disable
- TEST_DATABASE_DSN=host=172.17.0.1 user=postgres password=Q1234567 dbname=databasus port=5438 sslmode=disable
+ TEST_DATABASE_DSN="host=172.17.0.1 user=postgres password=Q1234567 dbname=databasus port=5438 sslmode=disable"
GOOSE_TEST_DBSTRING=postgres://postgres:[email protected]:5438/databasus?sslmode=disable
TEST_LOCALHOST=172.17.0.1
TEST_DB_HOST=172.17.0.1