jobs instead of steps in build output
This commit is contained in:
@@ -32,13 +32,13 @@ on:
|
|||||||
outputs:
|
outputs:
|
||||||
tag:
|
tag:
|
||||||
description: 'Built image tag'
|
description: 'Built image tag'
|
||||||
value: ${{ steps.build.outputs.tag }}
|
value: ${{ jobs.build.outputs.tag }}
|
||||||
image:
|
image:
|
||||||
description: 'Built image name'
|
description: 'Built image name'
|
||||||
value: ${{ steps.build.outputs.image }}
|
value: ${{ jobs.build.outputs.image }}
|
||||||
sha:
|
sha:
|
||||||
description: 'Git SHA used for the build'
|
description: 'Git SHA used for the build'
|
||||||
value: ${{ steps.build.outputs.sha }}
|
value: ${{ jobs.build.outputs.sha }}
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Docker Image
|
name: Build Docker Image
|
||||||
@@ -74,6 +74,10 @@ jobs:
|
|||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=registry,ref=${{ inputs.image }}/cache
|
cache-from: type=registry,ref=${{ inputs.image }}/cache
|
||||||
cache-to: type=registry,ref=${{ inputs.image }}/cache,mode=max
|
cache-to: type=registry,ref=${{ inputs.image }}/cache,mode=max
|
||||||
|
- name: Set outputs
|
||||||
|
id: facts
|
||||||
|
run: |
|
||||||
|
echo "sha=${{ gitea.event.release.target_commitish }}" >> $GITHUB_OUTPUT
|
||||||
outputs:
|
outputs:
|
||||||
tag: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
tag: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
||||||
image: ${{ inputs.image }}
|
image: ${{ inputs.image }}
|
||||||
|
|||||||
Reference in New Issue
Block a user