mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-22 23:27:06 +00:00
Add digest output to action.yml and set build-and-push step ID
This update introduces a new output 'digest' to the action.yml file, which captures the digest value from the build-and-push step. Additionally, the build-and-push step is now assigned an ID for better output management.
This commit is contained in:
parent
03f50cfd52
commit
a126631a61
@ -30,6 +30,9 @@ inputs:
|
|||||||
description: "Build Secrets"
|
description: "Build Secrets"
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
|
digest:
|
||||||
|
description: "Digest"
|
||||||
|
value: ${{ steps.build-and-push.outputs.digest }}
|
||||||
tag:
|
tag:
|
||||||
description: "Image Tag"
|
description: "Image Tag"
|
||||||
value: ${{ steps.set_tag.outputs.tag }}
|
value: ${{ steps.set_tag.outputs.tag }}
|
||||||
@ -71,6 +74,7 @@ runs:
|
|||||||
|
|
||||||
- name: Build Docker images
|
- name: Build Docker images
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
id: build-and-push
|
||||||
with:
|
with:
|
||||||
push: ${{ inputs.push }}
|
push: ${{ inputs.push }}
|
||||||
file: ${{ inputs.file }}
|
file: ${{ inputs.file }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user