mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-23 00:26:59 +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:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
outputs:
|
||||||
|
tag:
|
||||||
|
value: ${{ jobs.build-push.outputs.tag }}
|
||||||
|
tags:
|
||||||
|
value: ${{ jobs.build-push.outputs.tags }}
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
image:
|
image:
|
||||||
type: string
|
type: string
|
||||||
@ -63,6 +69,9 @@ jobs:
|
|||||||
name: Build and Push
|
name: Build and Push
|
||||||
runs-on: ${{ fromJson(inputs.runs-on) }}
|
runs-on: ${{ fromJson(inputs.runs-on) }}
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
outputs:
|
||||||
|
tag: ${{ fromJson(steps.meta.outputs.json).tags[0] }}
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user