name: Reusable Docker Workflow
on:
workflow_call:
inputs:
image_name:
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: docker build -t ${{ inputs.image_name }} .