From 8d7c95e65ebfc68aaeb2ff07f092218ea84fc0ed Mon Sep 17 00:00:00 2001 From: Shakar Bakr <5h4k4r.b4kr@gmail.com> Date: Sun, 3 Mar 2024 12:34:45 +0300 Subject: [PATCH] Adds more inputs Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com> --- action.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 50860e2..c2e5e71 100644 --- a/action.yml +++ b/action.yml @@ -19,6 +19,16 @@ inputs: required: false 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: tag: description: "Image Tag" @@ -60,8 +70,8 @@ runs: uses: docker/login-action@v3 with: registry: ${{ inputs.registry }} - username: ${{ secrets.username }} - password: ${{ secrets.password }} + username: ${{ inputs.username }} + password: ${{ inputs.password }} - name: Build Docker images uses: docker/build-push-action@v5 @@ -72,4 +82,4 @@ runs: cache-to: type=inline cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:${{ github.ref_name }}-cache build-args: ${{ inputs.build-args }} - secrets: ${{ secrets.build-secrets }} + secrets: ${{ inputs.build-secrets }}