mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-22 21:27:05 +00:00
Output tags
This commit is contained in:
parent
b17cc211b2
commit
fa19005ad0
9
.github/workflows/workflow.yaml
vendored
9
.github/workflows/workflow.yaml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user