feat: build-docker
This commit is contained in:
parent
f28476ae09
commit
82493003e8
1 changed files with 23 additions and 0 deletions
23
.forgejo/actions/build-docker/action.yml
Normal file
23
.forgejo/actions/build-docker/action.yml
Normal 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue