Update .github/workflows/docker.yaml

This commit is contained in:
Zakary Timson 2023-11-24 16:21:01 +00:00
parent 803fe4b97e
commit f1be8c6654

View File

@ -3,9 +3,14 @@ name: Build & Publish Dockerfile
on: on:
workflow_call: workflow_call:
inputs: inputs:
repository:
type: string
required: true
description: Git repository URL
dockerfile: dockerfile:
type: string type: string
required: false required: false
description: Name or path to Dockerfile
default: Dockerfile default: Dockerfile
registry: registry:
type: string type: string
@ -25,10 +30,12 @@ on:
name: name:
type: string type: string
required: false required: false
description: Docker container name
default: ${{github.repository}} default: ${{github.repository}}
tag: tag:
type: string type: string
required: false required: false
description: Docker tag that will be added to image
default: ${{github.ref_name}} default: ${{github.ref_name}}
jobs: jobs:
@ -39,6 +46,8 @@ jobs:
steps: steps:
- name: Clone Repository - name: Clone Repository
uses: ztimson/actions/clone@develop uses: ztimson/actions/clone@develop
with:
url: ${{inputs.repository}}
- name: Build Docker Image - name: Build Docker Image
uses: ztimson/actions/docker/build@develop uses: ztimson/actions/docker/build@develop