Revert "ajustando parametros condicionais"
This reverts commit 7ffe9e2aed.
This commit is contained in:
parent
7ffe9e2aed
commit
a1debc7e13
1 changed files with 1 additions and 32 deletions
|
|
@ -22,9 +22,7 @@ runs:
|
|||
with:
|
||||
username: ${{ inputs.username }}
|
||||
|
||||
# Both dockerfile and context provided
|
||||
- name: Build-Docker Build (df + ctx)
|
||||
if: ${{ inputs.dockerfile != '' && inputs.context != '' }}
|
||||
- name: Build-Docker Build Docker Image
|
||||
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
|
||||
|
|
@ -32,32 +30,3 @@ runs:
|
|||
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
|
||||
with:
|
||||
image: ${{ inputs.username }}/${{ env.IMAGE_NAME }}:${{ github.sha }},${{ inputs.username }}/${{ env.IMAGE_NAME }}:latest
|
||||
username: ${{ inputs.username }}
|
||||
password: ${{ inputs.password }}
|
||||
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