From daccb8176382c6c1bb555bf1ce4049aa1d5ce4e3 Mon Sep 17 00:00:00 2001 From: poignatov Date: Sun, 25 Jan 2026 16:45:58 +0300 Subject: [PATCH] =?UTF-8?q?4.0.1:=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=B4=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=BA=D0=B8=20=D0=BF=D0=B0=D1=80=D0=BE=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=91=D0=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-and-push.yml | 20 ++++++-------------- VERSION | 2 +- play-life-backend/main.go | 7 +++++-- play-life-web/package.json | 2 +- 4 files changed, 13 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/build-and-push.yml b/.gitea/workflows/build-and-push.yml index ecdfe4c..6ae9f8e 100644 --- a/.gitea/workflows/build-and-push.yml +++ b/.gitea/workflows/build-and-push.yml @@ -76,11 +76,8 @@ jobs: to: ${{ secrets.TELEGRAM_TO }} token: ${{ secrets.TELEGRAM_TOKEN }} message: | - ✅ Сборка и публикация успешны! - - Проект: play-life - Версия: ${{ steps.version_check.outputs.current }} - Коммит: ${{ steps.version_check.outputs.commit_message }} + ✅ play-life: успешная публикация! + ${{ steps.version_check.outputs.commit_message }} - name: Send Telegram notification (failure) if: failure() @@ -89,11 +86,8 @@ jobs: to: ${{ secrets.TELEGRAM_TO }} token: ${{ secrets.TELEGRAM_TOKEN }} message: | - ❌ Сборка завершилась с ошибкой! - - Проект: play-life - Версия: ${{ steps.version_check.outputs.current }} - Коммит: ${{ steps.version_check.outputs.commit_message }} + ❌ play-life: ошибка сборки или публикации! + ${{ steps.version_check.outputs.commit_message }} - name: Send Telegram notification (skipped) if: steps.version_check.outputs.changed == 'false' @@ -102,7 +96,5 @@ jobs: to: ${{ secrets.TELEGRAM_TO }} token: ${{ secrets.TELEGRAM_TOKEN }} message: | - ℹ️ Сборка пропущена - - Проект: play-life - Версия не изменилась: ${{ steps.version_check.outputs.current }} \ No newline at end of file + ℹ️ play-life: публикация пропущена + ${{ steps.version_check.outputs.commit_message }} \ No newline at end of file diff --git a/VERSION b/VERSION index fcdb2e1..1454f6e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.0.0 +4.0.1 diff --git a/play-life-backend/main.go b/play-life-backend/main.go index 3f99531..fc51acf 100644 --- a/play-life-backend/main.go +++ b/play-life-backend/main.go @@ -2601,8 +2601,11 @@ func (a *App) runMigrations() error { dbPassword := getEnv("DB_PASSWORD", "playeng") dbName := getEnv("DB_NAME", "playeng") - databaseURL := fmt.Sprintf("postgres://%s:%s@%s:%s/%s?sslmode=disable", - dbUser, dbPassword, dbHost, dbPort, dbName) + // Build database URL with proper encoding for special characters in password + // url.UserPassword properly encodes special characters like ^, @, etc. + userInfo := url.UserPassword(dbUser, dbPassword) + databaseURL := fmt.Sprintf("postgres://%s@%s:%s/%s?sslmode=disable", + userInfo.String(), dbHost, dbPort, dbName) // Create migrate instance m, err := migrate.New( diff --git a/play-life-web/package.json b/play-life-web/package.json index 498ad7b..1322bdb 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "4.0.0", + "version": "4.0.1", "type": "module", "scripts": { "dev": "vite",