ci: 使用host模式运行runner
This commit is contained in:
@@ -24,7 +24,7 @@ env:
|
||||
jobs:
|
||||
# ==================== 测试环境部署 ====================
|
||||
deploy-test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: host
|
||||
if: github.event_name == 'push' || github.inputs.environment == 'test'
|
||||
steps:
|
||||
- name: Deploy to test environment
|
||||
@@ -41,7 +41,7 @@ jobs:
|
||||
|
||||
# ==================== 正式环境部署(手动) ====================
|
||||
deploy-prod:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: host
|
||||
if: github.inputs.environment == 'prod'
|
||||
steps:
|
||||
- name: Deploy to production
|
||||
|
||||
Reference in New Issue
Block a user