2023-11-23 22:13:26 -05:00
|
|
|
name: Docker Build
|
|
|
|
description: Build docker image
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
registry:
|
|
|
|
type: string
|
|
|
|
required: false
|
|
|
|
default: ${{github.server_url}}
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
required: false
|
|
|
|
default: ${{github.repository}}
|
|
|
|
tag:
|
|
|
|
type: string
|
|
|
|
required: false
|
|
|
|
default: ${{github.ref_name}}
|
|
|
|
dockerfile:
|
|
|
|
type: string
|
|
|
|
required: false
|
|
|
|
default: Dockerfile
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
2023-11-23 22:15:06 -05:00
|
|
|
- name: Docker Build
|
2023-11-23 22:13:26 -05:00
|
|
|
uses: docker://docker
|
|
|
|
with:
|
|
|
|
entrypoint: docker
|
|
|
|
args: build -t "${{inputs.registry}}/${{inputs.name}}:${{inputs.tag}}" -f ${{inputs.dockerfile}} .
|