with and secretsjobs:
call-docker-build:
name: Call Docker Build
uses: bretfisher/docker-build-workflow/.github/workflows/reusable-docker-build.yaml@main
secrets:
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
with:
dockerhub-enable: true
image-names: ghcr.io/${{ github.repository }}
tag-rules: |
type=ref,event=pr
type=raw,value=gha-${{ github.run_id }}Reusable workflows accept data via inputs
inputs array to our reusable workflow on:workflow_call: event${{ inputs.<input-name> }}with and secrets key:values to our calling workflow