From 243517023499ff6a2ec0cbf479958cafb023e90c Mon Sep 17 00:00:00 2001 From: Hrx2022 <2379008409@qq.com> Date: Thu, 18 May 2023 21:17:01 +0800 Subject: [PATCH 1/3] This is a test --- test.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 test.md diff --git a/test.md b/test.md new file mode 100644 index 0000000..793aa68 --- /dev/null +++ b/test.md @@ -0,0 +1 @@ +This is a test \ No newline at end of file From 0d5e357ec9d62e517678e11f014a23c30f1a07b7 Mon Sep 17 00:00:00 2001 From: Hrx2022 <2379008409@qq.com> Date: Thu, 18 May 2023 21:21:03 +0800 Subject: [PATCH 2/3] update config.yaml db username and hostname --- conf/Config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/Config.yaml b/conf/Config.yaml index 5bf963f..b73ae65 100644 --- a/conf/Config.yaml +++ b/conf/Config.yaml @@ -1,7 +1,7 @@ dbConfig: # 数据库 配置 信息 - username: "root" # "itg_srv" + username: "itg_srv" # "itg_srv" password: "20050901@mysqlHrx" - hostname: "127.0.0.1" + hostname: "101.35.98.16" port: 3306 dbname: "itg_doc" charset: "utf8mb4" From fcae1a8aaf5bcf8b13963dcd64df330d7ab1fe30 Mon Sep 17 00:00:00 2001 From: Hrx2022 <2379008409@qq.com> Date: Thu, 18 May 2023 21:25:06 +0800 Subject: [PATCH 3/3] add azure-pipelines-dev.yml --- azure-pipelines-dev.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 azure-pipelines-dev.yml diff --git a/azure-pipelines-dev.yml b/azure-pipelines-dev.yml new file mode 100644 index 0000000..4e655f8 --- /dev/null +++ b/azure-pipelines-dev.yml @@ -0,0 +1,34 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: + - dev + +pool: + vmImage: ubuntu-latest + + +stages: + - stage: Deploy + displayName: 部署到服务器 + jobs: + - deployment: VMDeploy + displayName: 部署到Uni服务器 + environment: + name: uni-tencent + resourceType: VirtualMachine + strategy: + runOnce: + deploy: + steps: + - checkout: self + fetchDepth: 1 + displayName: 切换到目标仓库分支 + - bash: |- + docker compose -f docker-compose.yml up --build -d + env: + DeployPort: 9090 + displayName: 运行 docker compose 命令 +