Skip to content

Commit

Permalink
job name
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Dec 28, 2023
1 parent 765f8b4 commit b0e364b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/image_derivatives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/image_one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: step.image_one
on:
workflow_call:
inputs:
job_name:
type: string
required: false
dockerfile_name:
type: string
required: true
Expand All @@ -25,6 +28,7 @@ on:

jobs:
image:
name: ${{ inputs.job_name }}
runs-on: ubuntu-latest
outputs:
imageid: ${{ steps.build.outputs.imageid }}
Expand Down

0 comments on commit b0e364b

Please sign in to comment.