From fa19005ad0843aa5a1547a9198ee982b3ec28c0f Mon Sep 17 00:00:00 2001 From: "Shkar T. Noori" Date: Wed, 17 Aug 2022 14:28:15 +0000 Subject: [PATCH] Output tags --- .github/workflows/workflow.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 920d38f..a12b749 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -3,6 +3,12 @@ name: Build, Scan and Push Image on: workflow_call: + outputs: + tag: + value: ${{ jobs.build-push.outputs.tag }} + tags: + value: ${{ jobs.build-push.outputs.tags }} + inputs: image: type: string @@ -63,6 +69,9 @@ jobs: name: Build and Push runs-on: ${{ fromJson(inputs.runs-on) }} timeout-minutes: 10 + outputs: + tag: ${{ fromJson(steps.meta.outputs.json).tags[0] }} + tags: ${{ steps.meta.outputs.tags }} steps: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2