Output tags

This commit is contained in:
Shkar T. Noori 2022-08-17 14:28:15 +00:00
parent b17cc211b2
commit fa19005ad0
No known key found for this signature in database
GPG Key ID: E7AD76088FB6FE02

View File

@ -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