Compare commits
No commits in common. "08a7a20f7c78b6ead526813957db2c2b226ef7e6" and "7ffe9e2aed916cec91f898387ab36439c5ee88e9" have entirely different histories.
08a7a20f7c
...
7ffe9e2aed
1 changed files with 36 additions and 1 deletions
|
|
@ -7,6 +7,9 @@ inputs:
|
||||||
password:
|
password:
|
||||||
description: Registry Password
|
description: Registry Password
|
||||||
required: true
|
required: true
|
||||||
|
dockerfile:
|
||||||
|
description: The Dockerfile to build
|
||||||
|
required: false
|
||||||
context:
|
context:
|
||||||
description: Build context directory (absolute or relative to GITHUB_WORKSPACE)
|
description: Build context directory (absolute or relative to GITHUB_WORKSPACE)
|
||||||
required: false
|
required: false
|
||||||
|
|
@ -19,10 +22,42 @@ runs:
|
||||||
with:
|
with:
|
||||||
username: ${{ inputs.username }}
|
username: ${{ inputs.username }}
|
||||||
|
|
||||||
- name: Build-Docker Build Docker Image
|
# Both dockerfile and context provided
|
||||||
|
- name: Build-Docker Build (df + ctx)
|
||||||
|
if: ${{ inputs.dockerfile != '' && inputs.context != '' }}
|
||||||
|
uses: https://git.lhprovedor.com.br/leandro/forgejo-kaniko-action@v3
|
||||||
|
with:
|
||||||
|
image: ${{ inputs.username }}/${{ env.IMAGE_NAME }}:${{ github.sha }},${{ inputs.username }}/${{ env.IMAGE_NAME }}:latest
|
||||||
|
username: ${{ inputs.username }}
|
||||||
|
password: ${{ inputs.password }}
|
||||||
|
dockerfile: ${{ inputs.dockerfile }}
|
||||||
|
context: ${{ inputs.context }}
|
||||||
|
|
||||||
|
# Only dockerfile provided
|
||||||
|
- name: Build-Docker Build (df only)
|
||||||
|
if: ${{ inputs.dockerfile != '' && (inputs.context == '' || !inputs.context) }}
|
||||||
|
uses: https://git.lhprovedor.com.br/leandro/forgejo-kaniko-action@v3
|
||||||
|
with:
|
||||||
|
image: ${{ inputs.username }}/${{ env.IMAGE_NAME }}:${{ github.sha }},${{ inputs.username }}/${{ env.IMAGE_NAME }}:latest
|
||||||
|
username: ${{ inputs.username }}
|
||||||
|
password: ${{ inputs.password }}
|
||||||
|
dockerfile: ${{ inputs.dockerfile }}
|
||||||
|
|
||||||
|
# Only context provided
|
||||||
|
- name: Build-Docker Build (ctx only)
|
||||||
|
if: ${{ (inputs.dockerfile == '' || !inputs.dockerfile) && inputs.context != '' }}
|
||||||
uses: https://git.lhprovedor.com.br/leandro/forgejo-kaniko-action@v3
|
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 }}
|
||||||
context: ${{ inputs.context }}
|
context: ${{ inputs.context }}
|
||||||
|
|
||||||
|
# Neither dockerfile nor context provided
|
||||||
|
- name: Build-Docker Build (defaults)
|
||||||
|
if: ${{ (inputs.dockerfile == '' || !inputs.dockerfile) && (inputs.context == '' || !inputs.context) }}
|
||||||
|
uses: https://git.lhprovedor.com.br/leandro/forgejo-kaniko-action@v3
|
||||||
|
with:
|
||||||
|
image: ${{ inputs.username }}/${{ env.IMAGE_NAME }}:${{ github.sha }},${{ inputs.username }}/${{ env.IMAGE_NAME }}:latest
|
||||||
|
username: ${{ inputs.username }}
|
||||||
|
password: ${{ inputs.password }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue