mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-22 21:27:05 +00:00
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:
parent
89f03a4cdf
commit
03f50cfd52
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user