mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 06:54:28 +00:00
ci(release): allow manual Docker image build from external PR (#450)
This commit is contained in:
@@ -10,6 +10,10 @@ on:
|
|||||||
description: 'Docker image tag (e.g. feature-vaapi)'
|
description: 'Docker image tag (e.g. feature-vaapi)'
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
pr:
|
||||||
|
description: 'Pull request number (e.g. 449)'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
@@ -21,6 +25,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.pr && format('refs/pull/{0}/head', inputs.pr) || github.ref }}
|
||||||
|
|
||||||
# Set up Docker Buildx
|
# Set up Docker Buildx
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
|||||||
Reference in New Issue
Block a user