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 命令 + 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" 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