From c099e90c94ba7dd20dfabba362e82f986930fa74 Mon Sep 17 00:00:00 2001 From: Yosheng Date: Fri, 6 Oct 2023 15:27:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(CI):=20=E6=B5=8B=E8=AF=95=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E6=B3=A8=E5=85=A5=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 4 ++++ src/UserPointManagement.Web/Properties/launchSettings.json | 3 ++- src/UserPointManagement.Web/appsettings.json | 3 +-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3b236a8..6ba44ee 100644 --- a/.drone.yml +++ b/.drone.yml @@ -28,6 +28,9 @@ steps: - name: deploy pull: if-not-exists image: appleboy/drone-ssh + environment: + Connection: + from_secret: connection settings: host: 192.168.31.225 port: 22 @@ -35,6 +38,7 @@ steps: password: dronepw command_timeout: 2m script: + - echo $Connection - docker pull 192.168.31.104:8082/tiamo/user-point-management - docker image prune -f - docker stop user-point-management diff --git a/src/UserPointManagement.Web/Properties/launchSettings.json b/src/UserPointManagement.Web/Properties/launchSettings.json index 54d7936..89b6a33 100644 --- a/src/UserPointManagement.Web/Properties/launchSettings.json +++ b/src/UserPointManagement.Web/Properties/launchSettings.json @@ -19,7 +19,8 @@ "commandName": "Project", "launchBrowser": true, "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" + "ASPNETCORE_ENVIRONMENT": "Development", + "Connection:UserPointManagement": "Server=67.230.184.225;Port=58007;UserId=postgres;Password=postgres;Database=tiamo;" }, "applicationUrl": "https://localhost:5001;http://localhost:5000" } diff --git a/src/UserPointManagement.Web/appsettings.json b/src/UserPointManagement.Web/appsettings.json index 283ee9b..c1f91bf 100644 --- a/src/UserPointManagement.Web/appsettings.json +++ b/src/UserPointManagement.Web/appsettings.json @@ -22,6 +22,5 @@ "MenuRender": true, "MenuHeaderRender": true, "HeaderHeight": 48 - }, - "Connection:UserPointManagement": "Server=67.230.184.225;Port=58007;UserId=postgres;Password=postgres;Database=tiamo;" + } }