mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-22 22:36:43 +00:00
Adds more inputs
Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
This commit is contained in:
parent
8ac4d29201
commit
8d7c95e65e
16
action.yml
16
action.yml
@ -19,6 +19,16 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
default: "10"
|
default: "10"
|
||||||
|
|
||||||
|
username:
|
||||||
|
required: true
|
||||||
|
description: "Username for registry"
|
||||||
|
password:
|
||||||
|
required: true
|
||||||
|
description: "Password for registry"
|
||||||
|
build-secrets:
|
||||||
|
required: false
|
||||||
|
description: "Secrets for build"
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
tag:
|
tag:
|
||||||
description: "Image Tag"
|
description: "Image Tag"
|
||||||
@ -60,8 +70,8 @@ runs:
|
|||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ inputs.registry }}
|
registry: ${{ inputs.registry }}
|
||||||
username: ${{ secrets.username }}
|
username: ${{ inputs.username }}
|
||||||
password: ${{ secrets.password }}
|
password: ${{ inputs.password }}
|
||||||
|
|
||||||
- name: Build Docker images
|
- name: Build Docker images
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
@ -72,4 +82,4 @@ runs:
|
|||||||
cache-to: type=inline
|
cache-to: type=inline
|
||||||
cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:${{ github.ref_name }}-cache
|
cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:${{ github.ref_name }}-cache
|
||||||
build-args: ${{ inputs.build-args }}
|
build-args: ${{ inputs.build-args }}
|
||||||
secrets: ${{ secrets.build-secrets }}
|
secrets: ${{ inputs.build-secrets }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user