From 03f50cfd52b79283312404e061a97235dd72f772 Mon Sep 17 00:00:00 2001 From: "Shkar T. Noori" Date: Mon, 28 Apr 2025 02:46:59 +0300 Subject: [PATCH] Add input option for pushing to registry in action.yml Introduced a new input parameter 'push' to control whether the image should be pushed to the registry. The default value is set to true, allowing for more flexible image handling during the build process. --- action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0c4b2d7..d250ca2 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,10 @@ name: "Build, Scan and Push Image" description: "Build, Scan and Push Image to Self Hosted Registry" inputs: + push: + description: "Push to Registry" + required: false + default: "true" image: description: "Image Name" required: true @@ -68,7 +72,7 @@ runs: - name: Build Docker images uses: docker/build-push-action@v6 with: - push: true + push: ${{ inputs.push }} file: ${{ inputs.file }} tags: ${{ steps.meta.outputs.tags }} cache-to: type=inline