From b0e364b89aeda7e9304e8b50e842c616965cabcc Mon Sep 17 00:00:00 2001 From: Fallen_Breath Date: Thu, 28 Dec 2023 21:23:36 +0800 Subject: [PATCH] job name --- .github/workflows/ci.yml | 2 ++ .github/workflows/image_derivatives.yml | 2 ++ .github/workflows/image_one.yml | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index acadb45..e77494c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,8 @@ on: For example: "1.2.3,1.2.3-slim,1.2.3-py3.11,1.2.3-py3.11-slim" type: string required: true + repository_dispatch: + types: [trigger-workflow] jobs: build_matrix: diff --git a/.github/workflows/image_derivatives.yml b/.github/workflows/image_derivatives.yml index 490e74b..d971e57 100644 --- a/.github/workflows/image_derivatives.yml +++ b/.github/workflows/image_derivatives.yml @@ -19,6 +19,7 @@ jobs: uses: ./.github/workflows/image_one.yml secrets: inherit with: + job_name: Extra image dockerfile_name: Dockerfile-extra build_args: |- BASE_IMAGE=mcdreforged/mcdreforged:${{ inputs.source_tag }} @@ -36,6 +37,7 @@ jobs: uses: ./.github/workflows/image_one.yml secrets: inherit with: + job_name: OpenJDK image (${{ matrix.java }}, ${{ matrix.distribution }}, ${{ matrix.extra }}) dockerfile_name: Dockerfile-${{ matrix.distribution }} build_args: |- BASE_IMAGE=mcdreforged/${{ matrix.extra == 'true' && 'mcdreforged-extra' || 'mcdreforged' }}:${{ inputs.source_tag }} diff --git a/.github/workflows/image_one.yml b/.github/workflows/image_one.yml index cbab523..0869720 100644 --- a/.github/workflows/image_one.yml +++ b/.github/workflows/image_one.yml @@ -3,6 +3,9 @@ name: step.image_one on: workflow_call: inputs: + job_name: + type: string + required: false dockerfile_name: type: string required: true @@ -25,6 +28,7 @@ on: jobs: image: + name: ${{ inputs.job_name }} runs-on: ubuntu-latest outputs: imageid: ${{ steps.build.outputs.imageid }}