feat: add build context
This commit is contained in:
parent
85c14983e6
commit
004ac31e4d
1 changed files with 5 additions and 1 deletions
|
|
@ -10,6 +10,9 @@ inputs:
|
||||||
dockerfile:
|
dockerfile:
|
||||||
description: The Dockerfile to build
|
description: The Dockerfile to build
|
||||||
required: false
|
required: false
|
||||||
|
context:
|
||||||
|
description: Build context directory (absolute or relative to GITHUB_WORKSPACE)
|
||||||
|
required: false
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -20,9 +23,10 @@ runs:
|
||||||
username: ${{ inputs.username }}
|
username: ${{ inputs.username }}
|
||||||
|
|
||||||
- name: Build-Docker Build Docker Image
|
- name: Build-Docker Build Docker Image
|
||||||
uses: https://git.lhprovedor.com.br/leandro/forgejo-kaniko-action@v2
|
uses: https://git.lhprovedor.com.br/leandro/forgejo-kaniko-action@v3
|
||||||
with:
|
with:
|
||||||
image: ${{ inputs.username }}/${{ env.IMAGE_NAME }}:${{ github.sha }},${{ inputs.username }}/${{ env.IMAGE_NAME }}:latest
|
image: ${{ inputs.username }}/${{ env.IMAGE_NAME }}:${{ github.sha }},${{ inputs.username }}/${{ env.IMAGE_NAME }}:latest
|
||||||
username: ${{ inputs.username }}
|
username: ${{ inputs.username }}
|
||||||
password: ${{ inputs.password }}
|
password: ${{ inputs.password }}
|
||||||
dockerfile: ${{ inputs.dockerfile }}
|
dockerfile: ${{ inputs.dockerfile }}
|
||||||
|
context: ${{ inputs.context }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue