From f88330fe79f0ab69d6d22d7dc62ebe07e691c88a Mon Sep 17 00:00:00 2001 From: ytshih Date: Wed, 23 Apr 2025 09:18:20 +0800 Subject: [PATCH] Feat: add outputs --- action.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/action.yaml b/action.yaml index 57ac8cf..4a2901b 100644 --- a/action.yaml +++ b/action.yaml @@ -34,6 +34,17 @@ inputs: description: "The password of the user to use when push" 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: using: composite steps: @@ -70,6 +81,7 @@ runs: type=ref,event=tag type=sha - name: Build and push with docker + id: build uses: docker/build-push-action@v6.15.0 env: DOCKER_BUILD_SUMMARY: false