feat: build-docker

This commit is contained in:
Leandro Costa 2025-06-21 18:30:54 -03:00
parent f28476ae09
commit 82493003e8

View file

@ -0,0 +1,23 @@
name: Builds and Publish Docker Image
description: Define IMAGE_NAME to Git Hub env, based on repository name
inputs:
username:
description: Registry User Name
required: true
password:
description: Registry Password
required: true
runs:
using: composite
steps:
- name: Set Image Name
uses: https://git.lhprovedor.com.br/leandro/devops/.forgejo/actions/set-image-name@main
with:
username: ${{ inputs.username }}
- name: Build Docker Image
uses: https://git.lhprovedor.com.br/leandro/forgejo-kaniko-action@v2
with:
image: ${{ env.IMAGE_NAME }}:${{ github.sha }},${{ env.IMAGE_NAME }}:latest
username: ${{ inputs.username }}
password: ${{ inputs.password }}