Feat: add outputs
This commit is contained in:
12
action.yaml
12
action.yaml
@@ -34,6 +34,17 @@ inputs:
|
|||||||
description: "The password of the user to use when push"
|
description: "The password of the user to use when push"
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
imageid:
|
||||||
|
description: "Image Id"
|
||||||
|
value: ${{ steps.build.outputs.imageid }}
|
||||||
|
digest:
|
||||||
|
description: "Image digest"
|
||||||
|
value: ${{ steps.build.outputs.digest }}
|
||||||
|
metadata:
|
||||||
|
description: "Build result metadata"
|
||||||
|
value: ${{ steps.build.outputs.metadata }}
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
@@ -70,6 +81,7 @@ runs:
|
|||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
type=sha
|
type=sha
|
||||||
- name: Build and push with docker
|
- name: Build and push with docker
|
||||||
|
id: build
|
||||||
uses: docker/build-push-action@v6.15.0
|
uses: docker/build-push-action@v6.15.0
|
||||||
env:
|
env:
|
||||||
DOCKER_BUILD_SUMMARY: false
|
DOCKER_BUILD_SUMMARY: false
|
||||||
|
|||||||
Reference in New Issue
Block a user