mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-16 08:17:45 +01:00
add python_version in docker build workflow
This commit is contained in:
8
.github/workflows/docker-image.yml
vendored
8
.github/workflows/docker-image.yml
vendored
@@ -26,8 +26,12 @@ on:
|
||||
other_params:
|
||||
description: 'Other params in --xxx xxx'
|
||||
required: false
|
||||
python_version:
|
||||
description: 'Python version to use, default is 3.10.14'
|
||||
required: false
|
||||
default: '3.10.14'
|
||||
|
||||
run-name: Docker-${{ inputs.modelscope_branch }}-${{ inputs.image_type }}-${{ inputs.workflow_name }}-by-@${{ github.actor }}
|
||||
run-name: Docker-${{ inputs.modelscope_branch }}-${{ inputs.image_type }}-${{ inputs.workflow_name }}-${{ inputs.python_version }}-by-@${{ github.actor }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -51,4 +55,4 @@ jobs:
|
||||
run: |
|
||||
set -e
|
||||
source ~/.bashrc
|
||||
python docker/build_image.py --image_type ${{ github.event.inputs.image_type }} --modelscope_branch ${{ github.event.inputs.modelscope_branch }} --modelscope_version ${{ github.event.inputs.modelscope_version }} --swift_branch ${{ github.event.inputs.swift_branch }} --ci_image ${{ github.event.inputs.ci_image }} ${{ github.event.inputs.other_params }}
|
||||
python docker/build_image.py --image_type ${{ github.event.inputs.image_type }} --python_version ${{ github.event.inputs.python_version }} --modelscope_branch ${{ github.event.inputs.modelscope_branch }} --modelscope_version ${{ github.event.inputs.modelscope_version }} --swift_branch ${{ github.event.inputs.swift_branch }} --ci_image ${{ github.event.inputs.ci_image }} ${{ github.event.inputs.other_params }}
|
||||
|
||||
Reference in New Issue
Block a user