mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-27 17:20:35 +08:00
[ci] fix docker (#9678)
This commit is contained in:
13
.github/workflows/docker.yml
vendored
13
.github/workflows/docker.yml
vendored
@@ -29,16 +29,13 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- device: "cuda"
|
- device: "cuda"
|
||||||
npu_type: ""
|
- device: "npu-a2"
|
||||||
- device: "npu"
|
- device: "npu-a3"
|
||||||
npu_type: "a2"
|
|
||||||
- device: "npu"
|
|
||||||
npu_type: "a3"
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.device }}-${{ matrix.npu_type }}
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.device }}
|
||||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
@@ -93,7 +90,7 @@ jobs:
|
|||||||
docker.io/hiyouga/llamafactory:${{ steps.version.outputs.tag }}
|
docker.io/hiyouga/llamafactory:${{ steps.version.outputs.tag }}
|
||||||
|
|
||||||
- name: Build and push Docker image (NPU-A2)
|
- name: Build and push Docker image (NPU-A2)
|
||||||
if: ${{ matrix.device == 'npu' && matrix.npu_type == 'a2' }}
|
if: ${{ matrix.device == 'npu-a2' }}
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
@@ -105,7 +102,7 @@ jobs:
|
|||||||
quay.io/ascend/llamafactory:${{ steps.version.outputs.tag }}-npu-a2
|
quay.io/ascend/llamafactory:${{ steps.version.outputs.tag }}-npu-a2
|
||||||
|
|
||||||
- name: Build and push Docker image (NPU-A3)
|
- name: Build and push Docker image (NPU-A3)
|
||||||
if: ${{ matrix.device == 'npu' && matrix.npu_type == 'a3' }}
|
if: ${{ matrix.device == 'npu-a3' }}
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
|||||||
Reference in New Issue
Block a user