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