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.
This commit is contained in:
Shkar T. Noori 2025-04-28 02:46:59 +03:00
parent 89f03a4cdf
commit 03f50cfd52
No known key found for this signature in database
GPG Key ID: C5E1A00F3BB78732

View File

@ -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