Skip to content

Commit b7b7793

Browse files
committed
Speedup image build
Signed-off-by: Yikun Jiang <yikunkero@gmail.com>
1 parent 47b507b commit b7b7793

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/image_openeuler.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ on:
3434
jobs:
3535
build:
3636
name: vllm-ascend openEuler image
37-
runs-on: ubuntu-latest
38-
37+
runs-on: >-
38+
${{
39+
github.event_name == 'push' && github.repository_owner == 'vllm-project' &&
40+
'ubuntu-latest' ||
41+
'ubuntu-24.04-arm'
42+
}}
3943
steps:
4044
- uses: actions/checkout@v4
4145

@@ -87,7 +91,12 @@ jobs:
8791
- name: Build and push
8892
uses: docker/build-push-action@v6
8993
with:
90-
platforms: linux/amd64,linux/arm64
94+
platforms: >-
95+
${{
96+
github.event_name == 'push' && github.repository_owner == 'vllm-project' &&
97+
'linux/amd64,linux/arm64' ||
98+
'linux/arm64'
99+
}}
91100
# use the current repo path as the build context, ensure .git is contained
92101
context: .
93102
# only trigger when tag, branch/main push

.github/workflows/image_ubuntu.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ jobs:
8787
- name: Build and push
8888
uses: docker/build-push-action@v6
8989
with:
90-
platforms: linux/amd64,linux/arm64
90+
platforms: >-
91+
${{
92+
github.event_name == 'push' && github.repository_owner == 'vllm-project' &&
93+
'linux/amd64,linux/arm64' ||
94+
'linux/amd64'
95+
}}
9196
# use the current repo path as the build context, ensure .git is contained
9297
context: .
9398
# only trigger when tag, branch/main push

0 commit comments

Comments
 (0)