已合并
update actions runs-on config #168
tanghaoran创建于 18 天前
update actions runs-on config #168
已合并
共 1 个文件变更+4-4
| @@ -20,11 +20,11 @@ on: | |||
| 20 | 20 | ||
| 21 | env: | 21 | env: |
| 22 | org_name: ${{ vars.ORG_NAME }} | 22 | org_name: ${{ vars.ORG_NAME }} |
| 23 | - repo_name: ${{ atomgit.event.repository.name}} | 23 | + repo_name: ${{ atomgit.event.repository.name }} |
| 24 | MERGE_ID: ${{ atomgit.event.pull_request.number }} | 24 | MERGE_ID: ${{ atomgit.event.pull_request.number }} |
| 25 | TARGET_BRANCH: ${{ atomgit.base_ref }} | 25 | TARGET_BRANCH: ${{ atomgit.base_ref }} |
| 26 | SOURCE_BRANCH: ${{ atomgit.head_ref }} | 26 | SOURCE_BRANCH: ${{ atomgit.head_ref }} |
| 27 | - obs_path: "${{ vars.OBS_PATH }}/${{ env.MERGE_ID }}" | 27 | + obs_path: "${{ env.org_name }}/${{ env.repo_name }}/ci/package/${{ env.MERGE_ID }}" |
| 28 | online: ${{ vars.APPLY_LABEL }} | 28 | online: ${{ vars.APPLY_LABEL }} |
| 29 | 29 | ||
| 30 | stages: | 30 | stages: |
| @@ -41,7 +41,7 @@ stages: | |||
| 41 | repo_name: ${{ env.repo_name }} | 41 | repo_name: ${{ env.repo_name }} |
| 42 | target_branch: ${{ env.TARGET_BRANCH }} | 42 | target_branch: ${{ env.TARGET_BRANCH }} |
| 43 | repo_url: ${{ vars.CI_PATH }} | 43 | repo_url: ${{ vars.CI_PATH }} |
| 44 | - runs-on: [dedicate-hosted, x64, small] | 44 | + runs-on: ["self-hosted", "arch=x64", "spec=small"] |
| 45 | container: | 45 | container: |
| 46 | image: swr.cn-north-4.myhuaweicloud.com/ci_cann/ubuntu20.04.05_x86:k8s_v1.1006 | 46 | image: swr.cn-north-4.myhuaweicloud.com/ci_cann/ubuntu20.04.05_x86:k8s_v1.1006 |
| 47 | JOB_pre: | 47 | JOB_pre: |
| @@ -74,7 +74,7 @@ stages: | |||
| 74 | run: | | 74 | run: | |
| 75 | cd ${{ steps.process_checkout.outputs.path }} | 75 | cd ${{ steps.process_checkout.outputs.path }} |
| 76 | bash ci/validate_all_projects.sh | 76 | bash ci/validate_all_projects.sh |
| 77 | - runs-on: [dedicate-hosted, x64, medium] | 77 | + runs-on: ["self-hosted", "arch=x64", "spec=medium"] |
| 78 | container: | 78 | container: |
| 79 | image: swr.cn-north-4.myhuaweicloud.com/ci_cann/${{ jobs.JOB_image.outputs.Check_patches }} | 79 | image: swr.cn-north-4.myhuaweicloud.com/ci_cann/${{ jobs.JOB_image.outputs.Check_patches }} |
| 80 | pre: | 80 | pre: |